Move default settings into module. Move neotree into plugins. Add new mappings

This commit is contained in:
juanmagalhaes 2023-08-14 12:19:02 -03:00
parent c96aae7572
commit 7f49d1d675
4 changed files with 131 additions and 102 deletions

View file

@ -1,24 +0,0 @@
-- Unless you are still migrating, remove the deprecated commands from v1.x
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
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()
require('neo-tree').setup {
filesystem = {
filtered_items = {
visible = false,
hide_dotfiles = false,
}
}
}
vim.keymap.set('n', '<leader><space>', ':Neotree toggle<cr>', { desc = '(nvim-tree) File tree' })
end,
}