aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-04-02 19:48:41 +0800
committerjdhao <jdhao@hotmail.com>2022-04-02 19:48:41 +0800
commit085f0eb7e3ec4f45c61d4a70e9efc4b95774cb39 (patch)
tree2d59dc7e8f383b2467645d2e656c003d2493da4f
parent9f413333780f99d7644028b76b6012f00bfd65a5 (diff)
update nvim-tree conf: stay focus
-rw-r--r--lua/config/nvim-tree.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/config/nvim-tree.lua b/lua/config/nvim-tree.lua
index 5bfacf4..0606a51 100644
--- a/lua/config/nvim-tree.lua
+++ b/lua/config/nvim-tree.lua
@@ -59,4 +59,4 @@ nvim_tree.setup({
},
})
-vim.api.nvim_set_keymap("n", "<space>s", "<cmd>NvimTreeToggle<CR>", { noremap = true, silent = true })
+vim.api.nvim_set_keymap("n", "<space>s", "<cmd>lua require'nvim-tree'.toggle(false, true)<CR>", { noremap = true, silent = true })