testing nixvim

This commit is contained in:
cnst
2024-07-14 19:22:54 +02:00
parent e4d12360ba
commit 996a3c64d2
43 changed files with 892 additions and 59 deletions

View 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",
},
},
}