1
Fork 0
satellite/dotfiles/neovim/lua/my/plugins/nvim-tree.lua

21 lines
366 B
Lua
Raw Normal View History

2022-12-27 20:45:43 +01:00
local env = require("my.helpers.env")
2022-02-07 12:57:57 +01:00
2022-12-27 20:45:43 +01:00
local M = {
"kyazdani42/nvim-tree.lua",
cmd = "NvimTreeToggle",
config = true,
cond = env.vscode.not_active() and env.firenvim.not_active(),
}
function M.init()
-- Toggle nerdtree with Control-n
2022-12-27 20:45:43 +01:00
vim.keymap.set(
"n",
"<C-n>",
":NvimTreeToggle<CR>",
{ desc = "Toggle [n]vim-tree" }
)
2022-02-07 12:57:57 +01:00
end
return M