1
Fork 0

Modified a bunch of stuff to work with the native vim.keymap.set function

This commit is contained in:
Matei Adriel 2022-08-24 14:29:04 +03:00
parent cc6a209d8d
commit 7c77d3a8dd
6 changed files with 45 additions and 67 deletions
dotfiles/neovim/lua/my/plugins

View file

@ -1,11 +1,9 @@
local mapSilent = require("my.keymaps").mapSilent
local M = {}
function M.setup()
require'nvim-tree'.setup()
-- Toggle nerdtree with Control-t
mapSilent("n", "<C-n>", ":NvimTreeToggle<CR>")
require 'nvim-tree'.setup()
-- Toggle nerdtree with Control-n
vim.keymap.set("n", "<C-n>", ":NvimTreeToggle<CR>")
end
return M