Hide .git and .github folders

This commit is contained in:
SamPosh 2023-04-13 14:39:37 +05:30 committed by GitHub
parent ad71e2b872
commit c049aadcd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 1 deletions

View File

@ -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>')
} }