From c44550249b85307f668aff0d356c3461856c0e49 Mon Sep 17 00:00:00 2001 From: rebuilt Date: Sun, 10 Oct 2021 09:59:01 +0200 Subject: [PATCH] fix(nvimtree): change 0 and 1 values to true/false (#1728) --- lua/core/nvimtree.lua | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/lua/core/nvimtree.lua b/lua/core/nvimtree.lua index 55cc6175..efed03d1 100644 --- a/lua/core/nvimtree.lua +++ b/lua/core/nvimtree.lua @@ -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