Hide .git and .github folders
This commit is contained in:
parent
ad71e2b872
commit
c049aadcd4
|
@ -1,3 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
-- Unless you are still migrating, remove the deprecated commands from v1.x
|
-- Unless you are still migrating, remove the deprecated commands from v1.x
|
||||||
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
|
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
|
||||||
|
|
||||||
|
@ -10,7 +12,24 @@ return {
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
},
|
},
|
||||||
config = function ()
|
config = function ()
|
||||||
require('neo-tree').setup{}
|
require('neo-tree').setup{
|
||||||
|
filesystem = {
|
||||||
|
filtered_items = {
|
||||||
|
visible = true, -- when true, they will just be displayed differently than normal items
|
||||||
|
hide_dotfiles = true,
|
||||||
|
hide_hidden = true,
|
||||||
|
hide_gitignored = true,
|
||||||
|
always_show = { -- remains visible even if other settings would normally hide it
|
||||||
|
".vscode",
|
||||||
|
".jenkinsfiles"
|
||||||
|
},
|
||||||
|
never_show = {
|
||||||
|
".git",
|
||||||
|
".github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
end,
|
end,
|
||||||
vim.keymap.set('n', '<C-b>', '<Cmd>Neotree toggle<CR>')
|
vim.keymap.set('n', '<C-b>', '<Cmd>Neotree toggle<CR>')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue