diff options
| author | jdhao <jdhao@hotmail.com> | 2023-04-17 21:59:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-17 21:59:43 +0200 |
| commit | dc597004df2a523dbb16fb32d8878021137afc3f (patch) | |
| tree | 854ff632d9ee9cda496c25d44de1a9308d98f334 /lua | |
| parent | 644993a89e8be251c10f4d2b1bb761301f4545b1 (diff) | |
| parent | 164d6129f8c66a3ddc0607e633ee57d3de45cf1c (diff) | |
Merge pull request #187 from mr-cal/nvim-tree-update
nvim-tree: fix shortcut and repo
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/nvim-tree.lua | 7 | ||||
| -rw-r--r-- | lua/plugins.lua | 6 |
2 files changed, 7 insertions, 6 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..ea0c333 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -137,7 +137,7 @@ packer.startup { use { "tanvirtin/monokai.nvim", opt = true } use { "marko-cerovac/material.nvim", opt = true } - use { "kyazdani42/nvim-web-devicons", event = "VimEnter" } + use { "nvim-tree/nvim-web-devicons", event = "VimEnter" } use { "nvim-lualine/lualine.nvim", @@ -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')]], } |
