diff options
| author | Callahan Kovacs <callahankovacs@gmail.com> | 2023-03-30 08:41:15 -0500 |
|---|---|---|
| committer | Callahan Kovacs <callahankovacs@gmail.com> | 2023-03-30 08:41:15 -0500 |
| commit | cde21f6f67d16112ec82bd4e847a54ab695799b8 (patch) | |
| tree | db0c05d12dbed9b16aa8643b9e4be5b5d51971c0 | |
| parent | 8746c7eb11f368efb90226f8a49eec57764ba06a (diff) | |
nvim-tree: use api and new repository url
Signed-off-by: Callahan Kovacs <callahankovacs@gmail.com>
| -rw-r--r-- | lua/config/nvim-tree.lua | 7 | ||||
| -rw-r--r-- | lua/plugins.lua | 4 |
2 files changed, 6 insertions, 5 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", +}) diff --git a/lua/plugins.lua b/lua/plugins.lua index bcbfe29..07e1fac 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -358,8 +358,8 @@ packer.startup { -- file explorer use { - "kyazdani42/nvim-tree.lua", - requires = { "kyazdani42/nvim-web-devicons" }, + "nvim-tree/nvim-tree.lua", + requires = { "nvim-tree/nvim-web-devicons" }, config = [[require('config.nvim-tree')]], } |
