diff options
author | Abouzar Parvan <[email protected]> | 2021-09-26 20:06:34 +0330 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-26 20:06:34 +0330 |
commit | 62b805448d1fdb9236ee6b4da41e3d7ef1acc8df (patch) | |
tree | be74035b06c8dd2fb666822e0c0f24866bf69315 /lua/core/nvimtree.lua | |
parent | 1d96533f17103fc05f2b64921137bba11224e6b0 (diff) |
migrate nvim-tree to setup syntax episode 4 :cry: (#1627)
Diffstat (limited to 'lua/core/nvimtree.lua')
-rw-r--r-- | lua/core/nvimtree.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lua/core/nvimtree.lua b/lua/core/nvimtree.lua index dfcbb1fa..db017fd0 100644 --- a/lua/core/nvimtree.lua +++ b/lua/core/nvimtree.lua @@ -5,7 +5,6 @@ function M.config() lvim.builtin.nvimtree = { active = true, on_config_done = nil, - side = "left", setup = { auto_open = 0, auto_close = 1, @@ -14,8 +13,15 @@ function M.config() enable = 1, }, lsp_diagnostics = 1, + view = { + width = 30, + side = "left", + auto_resize = false, + mappings = { + custom_only = false, + }, + }, }, - width = 30, show_icons = { git = 1, folders = 1, @@ -76,8 +82,8 @@ function M.setup() local tree_cb = nvim_tree_config.nvim_tree_callback - if not g.nvim_tree_bindings then - g.nvim_tree_bindings = { + if not lvim.builtin.nvimtree.setup.view.mappings.list then + lvim.builtin.nvimtree.setup.view.mappings.list = { { key = { "l", "<CR>", "o" }, cb = tree_cb "edit" }, { key = "h", cb = tree_cb "close_node" }, { key = "v", cb = tree_cb "vsplit" }, |