port to new nvim tree
This commit is contained in:
parent
4c6f740e8b
commit
c8e0d770a8
1 changed files with 20 additions and 8 deletions
|
@ -29,14 +29,26 @@ let g:ack_use_cword_for_empty_search = 1
|
||||||
|
|
||||||
|
|
||||||
lua << EOF
|
lua << EOF
|
||||||
require'nvim-tree'.setup{
|
-- disable netrw at the very start of your init.lua
|
||||||
disable_netrw = false,
|
vim.g.loaded_netrw = 1
|
||||||
hijack_cursor=true,
|
vim.g.loaded_netrwPlugin = 1
|
||||||
ignore_buffer_on_setup=true,
|
|
||||||
open_on_setup=true,
|
-- set termguicolors to enable highlight groups
|
||||||
open_on_tab=true,
|
vim.opt.termguicolors = true
|
||||||
update_focused_file = { enable = true },
|
|
||||||
}
|
-- OR setup with some options
|
||||||
|
require("nvim-tree").setup({
|
||||||
|
sort_by = "case_sensitive",
|
||||||
|
view = {
|
||||||
|
width = 30,
|
||||||
|
},
|
||||||
|
renderer = {
|
||||||
|
group_empty = true,
|
||||||
|
},
|
||||||
|
filters = {
|
||||||
|
dotfiles = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue