mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
fix(nvimtree): change 0 and 1 values to true/false (#1728)
This commit is contained in:
parent
65f165011a
commit
c44550249b
1 changed files with 18 additions and 18 deletions
|
@ -6,13 +6,13 @@ function M.config()
|
||||||
active = true,
|
active = true,
|
||||||
on_config_done = nil,
|
on_config_done = nil,
|
||||||
setup = {
|
setup = {
|
||||||
open_on_setup = 0,
|
open_on_setup = false,
|
||||||
auto_close = 1,
|
auto_close = true,
|
||||||
open_on_tab = 0,
|
open_on_tab = false,
|
||||||
update_focused_file = {
|
update_focused_file = {
|
||||||
enable = 1,
|
enable = true,
|
||||||
},
|
},
|
||||||
lsp_diagnostics = 1,
|
lsp_diagnostics = true,
|
||||||
view = {
|
view = {
|
||||||
width = 30,
|
width = 30,
|
||||||
side = "left",
|
side = "left",
|
||||||
|
@ -23,18 +23,18 @@ function M.config()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
show_icons = {
|
show_icons = {
|
||||||
git = 1,
|
git = true,
|
||||||
folders = 1,
|
folders = true,
|
||||||
files = 1,
|
files = true,
|
||||||
folder_arrows = 1,
|
folder_arrows = true,
|
||||||
tree_width = 30,
|
tree_width = 30,
|
||||||
},
|
},
|
||||||
ignore = { ".git", "node_modules", ".cache" },
|
ignore = { ".git", "node_modules", ".cache" },
|
||||||
quit_on_open = 0,
|
quit_on_open = false,
|
||||||
hide_dotfiles = 1,
|
hide_dotfiles = true,
|
||||||
git_hl = 1,
|
git_hl = true,
|
||||||
root_folder_modifier = ":t",
|
root_folder_modifier = ":t",
|
||||||
allow_resize = 1,
|
allow_resize = true,
|
||||||
auto_ignore_ft = { "startify", "dashboard" },
|
auto_ignore_ft = { "startify", "dashboard" },
|
||||||
icons = {
|
icons = {
|
||||||
default = "",
|
default = "",
|
||||||
|
@ -73,11 +73,11 @@ function M.setup()
|
||||||
|
|
||||||
-- Implicitly update nvim-tree when project module is active
|
-- Implicitly update nvim-tree when project module is active
|
||||||
if lvim.builtin.project.active then
|
if lvim.builtin.project.active then
|
||||||
lvim.builtin.nvimtree.respect_buf_cwd = 1
|
lvim.builtin.nvimtree.respect_buf_cwd = true
|
||||||
lvim.builtin.nvimtree.setup.update_cwd = 1
|
lvim.builtin.nvimtree.setup.update_cwd = true
|
||||||
lvim.builtin.nvimtree.setup.disable_netrw = 0
|
lvim.builtin.nvimtree.setup.disable_netrw = false
|
||||||
lvim.builtin.nvimtree.setup.hijack_netrw = 0
|
lvim.builtin.nvimtree.setup.hijack_netrw = false
|
||||||
vim.g.netrw_banner = 0
|
vim.g.netrw_banner = false
|
||||||
end
|
end
|
||||||
|
|
||||||
local tree_cb = nvim_tree_config.nvim_tree_callback
|
local tree_cb = nvim_tree_config.nvim_tree_callback
|
||||||
|
|
Loading…
Reference in a new issue