fix(nvimtree): change 0 and 1 values to true/false (#1728)

This commit is contained in:
rebuilt 2021-10-10 09:59:01 +02:00 committed by GitHub
parent 65f165011a
commit c44550249b
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,13 +6,13 @@ function M.config()
active = true,
on_config_done = nil,
setup = {
open_on_setup = 0,
auto_close = 1,
open_on_tab = 0,
open_on_setup = false,
auto_close = true,
open_on_tab = false,
update_focused_file = {
enable = 1,
enable = true,
},
lsp_diagnostics = 1,
lsp_diagnostics = true,
view = {
width = 30,
side = "left",
@ -23,18 +23,18 @@ function M.config()
},
},
show_icons = {
git = 1,
folders = 1,
files = 1,
folder_arrows = 1,
git = true,
folders = true,
files = true,
folder_arrows = true,
tree_width = 30,
},
ignore = { ".git", "node_modules", ".cache" },
quit_on_open = 0,
hide_dotfiles = 1,
git_hl = 1,
quit_on_open = false,
hide_dotfiles = true,
git_hl = true,
root_folder_modifier = ":t",
allow_resize = 1,
allow_resize = true,
auto_ignore_ft = { "startify", "dashboard" },
icons = {
default = "",
@ -73,11 +73,11 @@ function M.setup()
-- Implicitly update nvim-tree when project module is active
if lvim.builtin.project.active then
lvim.builtin.nvimtree.respect_buf_cwd = 1
lvim.builtin.nvimtree.setup.update_cwd = 1
lvim.builtin.nvimtree.setup.disable_netrw = 0
lvim.builtin.nvimtree.setup.hijack_netrw = 0
vim.g.netrw_banner = 0
lvim.builtin.nvimtree.respect_buf_cwd = true
lvim.builtin.nvimtree.setup.update_cwd = true
lvim.builtin.nvimtree.setup.disable_netrw = false
lvim.builtin.nvimtree.setup.hijack_netrw = false
vim.g.netrw_banner = false
end
local tree_cb = nvim_tree_config.nvim_tree_callback