testing nixvim
This commit is contained in:
53
home/extra/neovimbak/nvim/lua/plugins/neo-tree.lua
Normal file
53
home/extra/neovimbak/nvim/lua/plugins/neo-tree.lua
Normal file
@@ -0,0 +1,53 @@
|
||||
return {
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
version = "*",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- optional, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
event = { "BufReadPost", "BufNewFile" },
|
||||
cmd = { "Neotree" },
|
||||
opts = {
|
||||
close_if_last_window = true,
|
||||
window = {
|
||||
mappings = {
|
||||
["l"] = "open",
|
||||
["h"] = "open_split",
|
||||
-- TODO: `v` is for select. Find another key for vsplit
|
||||
-- ['v'] = 'open_vsplit',
|
||||
},
|
||||
},
|
||||
filesystem = {
|
||||
follow_current_file = { enabled = true },
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<C-n>", "<CMD>Neotree toggle<CR>", mode = { "n", "x", "t" }, desc = "Toggle [N]eoTree", nowait = true },
|
||||
-- {
|
||||
-- '<C-b>',
|
||||
-- '<CMD>Neotree toggle buffers<CR>',
|
||||
-- mode = { 'n', 'x', 't' },
|
||||
-- desc = 'Toggle Neotree [B]uffers',
|
||||
-- nowait = true,
|
||||
-- },
|
||||
{
|
||||
"<C-f>",
|
||||
"<CMD>Neotree toggle position=current<CR>",
|
||||
mode = { "n", "x" },
|
||||
desc = "Toggle [F]ull NeoTree",
|
||||
nowait = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
-- file operations using built-in LSP
|
||||
{
|
||||
"antosha417/nvim-lsp-file-operations",
|
||||
config = true,
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user