Neotree fig

This commit is contained in:
Christian Nieves
2024-07-05 21:09:38 +00:00
parent 31b1510b06
commit f9acecd558
3 changed files with 27 additions and 5 deletions

Submodule tmux/.tmux/plugins/tmux-continuum updated: 3e4bc35da4...0698e8f4b1

View File

@ -1,11 +1,17 @@
local use_google = require("utils").use_google
return { return {
{ {
"nvim-neo-tree/neo-tree.nvim", "nvim-neo-tree/neo-tree.nvim",
deps = {
"~/fig-tree",
},
cmd = { cmd = {
"Neotree", "Neotree",
}, },
config = function() config = function()
require("neo-tree").setup({ require("neo-tree").setup({
hijack_netrw_behavior = "open_default",
filesystem = { filesystem = {
filtered_items = { filtered_items = {
hide_dotfiles = false, hide_dotfiles = false,
@ -17,7 +23,7 @@ return {
"buffers", "buffers",
"git_status", "git_status",
"diagnostics", "diagnostics",
"docment_symbols", "fig",
-- ...and any additional source -- ...and any additional source
}, },
source_selector = { source_selector = {
@ -66,9 +72,15 @@ return {
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
}, },
keys = { keys = {
{ "<C-n>", ":Neotree float reveal toggle dir=%:p:h<cr>" }, (function()
if use_google() then
return { "<C-n>", ":Neotree toggle fig<CR>", desc = "Open NeoTree CWD float" }
end
-- return { "<C-n>.", ":Neotree toggle reveal_force_cwd<CR>", desc = "Open NeoTree CWD float" }
return { "<C-n>", ":Neotree toggle git_status<CR>", desc = "Open NeoTree CWD float" }
end)(),
{ "<C-n>b", ":Neotree float buffers<CR>" }, { "<C-n>b", ":Neotree float buffers<CR>" },
-- { "<C-n>.", ":Neotree float reveal_force_cwd<CR>", desc = "Open NeoTree CWD float" }, { "<C-n>.", ":Neotree float reveal toggle dir=%:p:h<cr>" },
}, },
}, },
} }

View File

@ -1,6 +1,16 @@
local use_google = require("utils").use_google local use_google = require("utils").use_google
return { return {
{
"bluz71/vim-moonfly-colors",
name = "moonfly",
cond = not use_google(),
lazy = false,
priority = 1000,
config = function()
vim.cmd("colorscheme moonfly")
end,
},
{ {
"sainnhe/sonokai", "sainnhe/sonokai",
-- cond = false, -- cond = false,
@ -34,7 +44,7 @@ return {
"EdenEast/nightfox.nvim", "EdenEast/nightfox.nvim",
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins priority = 1000, -- make sure to load this before all the other start plugins
cond = not use_google(), cond = false,
config = function() config = function()
-- vim.cmd("colorscheme nightfox") -- vim.cmd("colorscheme nightfox")
-- vim.cmd("colorscheme carbonfox") -- vim.cmd("colorscheme carbonfox")