diff options
author | rebuilt <[email protected]> | 2021-10-10 09:59:01 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-10 11:29:01 +0330 |
commit | c44550249b85307f668aff0d356c3461856c0e49 (patch) | |
tree | 6327efae349ee1ad2accf18dfcc9466ecfd512d0 /lua/core/nvimtree.lua | |
parent | 65f165011ad9af61b85c1f491d22c217839591b7 (diff) |
fix(nvimtree): change 0 and 1 values to true/false (#1728)
Diffstat (limited to 'lua/core/nvimtree.lua')
-rw-r--r-- | lua/core/nvimtree.lua | 36 |
1 files 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 |