From cde21f6f67d16112ec82bd4e847a54ab695799b8 Mon Sep 17 00:00:00 2001 From: Callahan Kovacs Date: Thu, 30 Mar 2023 08:41:15 -0500 Subject: [PATCH 1/2] nvim-tree: use api and new repository url Signed-off-by: Callahan Kovacs --- lua/config/nvim-tree.lua | 7 ++++--- 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", "s", function() - return require("nvim-tree").toggle(false, true) -end, { silent = true, desc = "toggle nvim-tree" }) +keymap.set("n", "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')]], } From 164d6129f8c66a3ddc0607e633ee57d3de45cf1c Mon Sep 17 00:00:00 2001 From: Callahan Kovacs Date: Wed, 5 Apr 2023 08:37:16 -0500 Subject: [PATCH 2/2] nvim-tree: update other references Signed-off-by: Callahan Kovacs --- README.md | 2 +- lua/plugins.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc79202..3051626 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ and how to set up on different platforms (Linux, macOS, and Windows). + Fast buffer jump via [hop.nvim](https://github.com/phaazon/hop.nvim). + Powerful snippet insertion via [Ultisnips](https://github.com/SirVer/ultisnips). + Beautiful statusline via [lualine.nvim](https://github.com/nvim-lualine/lualine.nvim). -+ File tree explorer via [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua). ++ File tree explorer via [nvim-tree.lua](https://github.com/nvim-tree/nvim-tree.lua). + Better quickfix list with [nvim-bqf](https://github.com/kevinhwang91/nvim-bqf). + Show search index and count with [nvim-hlslens](https://github.com/kevinhwang91/nvim-hlslens). + Command line auto-completion via [wilder.nvim](https://github.com/gelguy/wilder.nvim). diff --git a/lua/plugins.lua b/lua/plugins.lua index 07e1fac..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",