201 current 2025-01-11 03:49:34 25.05.20241217.d3c42f1 6.6.66 *
This commit is contained in:
@@ -41,6 +41,10 @@
|
|||||||
plugin = nerdcommenter;
|
plugin = nerdcommenter;
|
||||||
config = toLuaFile ./plugins/nerdcommenter.lua;
|
config = toLuaFile ./plugins/nerdcommenter.lua;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
plugin = nvim-tree-lua;
|
||||||
|
config = toLuaFile ./plugins/nerdtree.lua;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
# extraConfig = lib.fileContents ./init.vim;
|
# extraConfig = lib.fileContents ./init.vim;
|
||||||
|
|||||||
31
home/programs/nvim/plugins/nerdtree.lua
Normal file
31
home/programs/nvim/plugins/nerdtree.lua
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
vim.g.loaded_netrw = 1
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
|
||||||
|
vim.opt.termguicolors = true
|
||||||
|
|
||||||
|
require('nvim-tree').setup()
|
||||||
|
|
||||||
|
require('nvim-tree').setup({
|
||||||
|
sort_by = 'case_sensitive',
|
||||||
|
view = {
|
||||||
|
adaptive_size = false,
|
||||||
|
mappings = {
|
||||||
|
list = {
|
||||||
|
{ key = 'u', action = 'dir_up' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
width = 30,
|
||||||
|
},
|
||||||
|
renderer = {
|
||||||
|
group_empty = true,
|
||||||
|
},
|
||||||
|
filters = {
|
||||||
|
dotfiles = true,
|
||||||
|
exclude = {".git", ".jpg", ".mp4", ".ogg", ".iso", ".pdf", ".odt", ".png", ".gif", ".db", ".class"},
|
||||||
|
},
|
||||||
|
actions = {
|
||||||
|
open_file = {
|
||||||
|
resize_window = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user