nvim-config/lua/custom/plugins/filetree.lua

35 lines
888 B
Lua
Raw Normal View History

2024-02-28 07:44:41 +00:00
-- Unless you are still migrating, remove the deprecated commands from v1.x
vim.cmd [[ let g:neo_tree_remove_legacy_commands = 1 ]]
2024-02-28 13:58:12 +00:00
-- Open nvim-neo-tree window
vim.keymap.set({ 'n', 'v' }, '<leader>f', ':Neotree toggle<enter>', { desc = 'Explore [F]ile Tree' })
2024-02-28 07:44:41 +00:00
return {
'nvim-neo-tree/neo-tree.nvim',
version = '*',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
'MunifTanjim/nui.nvim',
},
config = function()
2024-03-17 12:31:16 +00:00
require('neo-tree').setup {
filesystem = {
filtered_items = {
visible = true,
hide_dotfiles = false,
hide_gitignored = false,
hide_by_name = {
'node_modules',
'.svelte-kit',
'target',
'.git',
'bin',
'obj',
},
},
},
}
2024-02-28 07:44:41 +00:00
end,
}