Skip to content

Commit

Permalink
refactor: nvim-tree toggle keybinds is now in lazy-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
grtw2116 committed Sep 5, 2024
1 parent 4648ddd commit 5194ad4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions config/nvim/lua/lazy-setup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,14 @@ require("lazy").setup({
config = function()
require("plugin-config/nvim-tree")
end,
keys = {
{
"<C-n>",
"<cmd>NvimTreeToggle<CR>",
mode = "n",
desc = "Toggle NvimTree",
},
},
},

-- --------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions config/nvim/lua/plugin-config/nvim-tree.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
require("nvim-tree").setup()

vim.keymap.set("n", "<C-n>", ":NvimTreeToggle<CR>", { noremap = true, silent = true })

0 comments on commit 5194ad4

Please sign in to comment.