Neovim: Add neotree styling

This commit is contained in:
GHOSCHT 2024-01-07 15:32:57 +01:00
parent 954653ad31
commit 4303d86e7f
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 20 additions and 0 deletions

View file

@ -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";
} }

View 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>")