nvim-tree and treesitter config to packer

This commit is contained in:
2022-03-16 19:53:08 +01:00
parent c0aa5e03d0
commit cf9b76d0e0
4 changed files with 69 additions and 69 deletions

28
lua/setup/nvim-tree.lua Normal file
View File

@@ -0,0 +1,28 @@
local utils = require('utils')
require('nvim-tree').setup({
auto_close = true,
update_cwd = true,
update_to_buf_dir = {
-- enable the feature
enable = true,
-- allow to open the tree if it was previously closed
auto_open = false,
},
update_focused_file = {
enable = true,
update_cwd = false,
ignore_list = {}
},
diagnostics = {
enable = true,
icons = {
hint = "",
info = "",
warning = "",
error = "",
}
},
})
utils.map('n', '<leader>tt', '<cmd>NvimTreeToggle<CR>')
vim.g.nvim_tree_highlight_opened_files = 1
vim.g.nvim_tree_respect_buf_cwd = 1