aboutsummaryrefslogtreecommitdiff
path: root/lua/config/nvim-tree.lua
diff options
context:
space:
mode:
authorCallahan Kovacs <callahankovacs@gmail.com>2023-03-30 08:41:15 -0500
committerCallahan Kovacs <callahankovacs@gmail.com>2023-03-30 08:41:15 -0500
commitcde21f6f67d16112ec82bd4e847a54ab695799b8 (patch)
treedb0c05d12dbed9b16aa8643b9e4be5b5d51971c0 /lua/config/nvim-tree.lua
parent8746c7eb11f368efb90226f8a49eec57764ba06a (diff)
nvim-tree: use api and new repository url
Signed-off-by: Callahan Kovacs <callahankovacs@gmail.com>
Diffstat (limited to 'lua/config/nvim-tree.lua')
-rw-r--r--lua/config/nvim-tree.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/config/nvim-tree.lua b/lua/config/nvim-tree.lua
index 267f7f6..96cdb34 100644
--- a/lua/config/nvim-tree.lua
+++ b/lua/config/nvim-tree.lua
@@ -113,6 +113,7 @@ nvim_tree.setup {
},
}
-keymap.set("n", "<space>s", function()
- return require("nvim-tree").toggle(false, true)
-end, { silent = true, desc = "toggle nvim-tree" })
+keymap.set("n", "<space>s", require("nvim-tree.api").tree.toggle, {
+ silent = true,
+ desc = "toggle nvim-tree",
+})