1
Fork 0

Almost rewrote my entire config

This commit is contained in:
Matei Adriel 2022-12-27 20:45:43 +01:00
commit c5b355601e
51 changed files with 973 additions and 870 deletions
dotfiles/neovim/lua/my/plugins

View file

@ -1,9 +1,20 @@
local M = {}
local env = require("my.helpers.env")
function M.setup()
require 'nvim-tree'.setup()
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
vim.keymap.set("n", "<C-n>", ":NvimTreeToggle<CR>")
vim.keymap.set(
"n",
"<C-n>",
":NvimTreeToggle<CR>",
{ desc = "Toggle [n]vim-tree" }
)
end
return M