Fixed nvim-tree config
This commit is contained in:
parent
3c57374872
commit
fb7df21f68
14
init.lua
14
init.lua
@ -74,10 +74,17 @@ vim.cmd [[autocmd CursorHold,CursorHoldI * lua require'nvim-lightbulb'.update_li
|
||||
-------------------- CMP -----------------------------------
|
||||
require('cmp_plug')
|
||||
-------------------- NVIM-TREE -----------------------------
|
||||
g.nvim_tree_auto_open = 0
|
||||
-- g.nvim_tree_show_icons = { 'git': 1, 'folders': 1, 'files': 1, 'folder_arrows': 1 }
|
||||
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,
|
||||
},
|
||||
})
|
||||
utils.map('n', '<leader>tt', '<cmd>NvimTreeToggle<CR>')
|
||||
g.nvim_tree_follow = 1
|
||||
g.nvim_tree_highlight_opened_files = 1
|
||||
-------------------- COMMENTED -----------------------------
|
||||
require('Comment').setup({
|
||||
@ -112,7 +119,6 @@ require("project_nvim").setup {
|
||||
silent_chdir = false,
|
||||
}
|
||||
require('telescope').load_extension('projects')
|
||||
g.nvim_tree_update_cwd = 1
|
||||
utils.map('n', '<space>p', '<cmd>Telescope projects<cr>')
|
||||
-------------------- TS-RAINBOW ----------------------------
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
|
Loading…
x
Reference in New Issue
Block a user