fix nvimtree vim globals not having any effect
This commit is contained in:
parent
75dbf5027d
commit
958a62bc67
|
@ -1,9 +1,4 @@
|
||||||
local present, nvimtree = pcall(require, "nvim-tree")
|
-- globals must be set prior to requiring nvim-tree to function
|
||||||
|
|
||||||
if not present then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local g = vim.g
|
local g = vim.g
|
||||||
|
|
||||||
g.nvim_tree_add_trailing = 0 -- append a trailing slash to folder names
|
g.nvim_tree_add_trailing = 0 -- append a trailing slash to folder names
|
||||||
|
@ -40,6 +35,12 @@ g.nvim_tree_icons = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local present, nvimtree = pcall(require, "nvim-tree")
|
||||||
|
|
||||||
|
if not present then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local default = {
|
local default = {
|
||||||
filters = {
|
filters = {
|
||||||
dotfiles = false,
|
dotfiles = false,
|
||||||
|
|
Loading…
Reference in New Issue