Neovim: Add neotree styling
This commit is contained in:
parent
954653ad31
commit
4303d86e7f
2 changed files with 20 additions and 0 deletions
|
@ -144,6 +144,7 @@ in {
|
||||||
nui-nvim
|
nui-nvim
|
||||||
{
|
{
|
||||||
plugin = neo-tree-nvim;
|
plugin = neo-tree-nvim;
|
||||||
|
config = builtins.readFile ./plugin/neo-tree.lua;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
19
home/features/coding/nvim/plugin/neo-tree.lua
Normal file
19
home/features/coding/nvim/plugin/neo-tree.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
require("neo-tree").setup({
|
||||||
|
close_if_last_window = true, -- Close Neo-tree if it is the last window left in the tab
|
||||||
|
hide_root_node = true, -- Hide the root node
|
||||||
|
filesystem = {
|
||||||
|
filtered_items = {
|
||||||
|
visible = false,
|
||||||
|
hide_dotfiles = false,
|
||||||
|
hide_gitignored = false,
|
||||||
|
hide_by_name = {
|
||||||
|
".git",
|
||||||
|
".DS_Store",
|
||||||
|
"thumbs.db",
|
||||||
|
},
|
||||||
|
show_hidden_count = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-n>", "<Cmd>Neotree toggle<CR>")
|
Loading…
Reference in a new issue