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()
|
2022-08-24 13:29:04 +02:00
|
|
|
-- 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
|