* chore(defaults.lua): add expandtab and smarttab options
* chore(keymaps.lua): add silent and noremap options to NvimTreeToggle keymap * chore(nvim-tree.lua): comment out auto open autocmd * chore(init.lua): disable netrw and add autoformat and debug plugins * feat(autopairs.lua): add nvim-autopairs plugin with default configuration * feat(init.lua): add vim-go plugin * feat(nvim-tree.lua): add custom filter to ignore .git directory in nvim-tree view
This commit is contained in:
parent
42ca0e4245
commit
049d71cf0f
7 changed files with 24 additions and 7 deletions
|
|
@ -1 +1,4 @@
|
|||
vim.opt.relativenumber = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.smarttab = true
|
||||
|
|
@ -22,4 +22,4 @@ keymap("n", "<C-k>", "<C-w>k", opts)
|
|||
keymap("n", "<C-l>", "<C-w>l", opts)
|
||||
|
||||
-- Nvimtree
|
||||
keymap('n', '<leader>n', ":NvimTreeToggle<cr>")
|
||||
keymap('n', '<leader>n', ":NvimTreeToggle<cr>", {silent = true, noremap = true})
|
||||
|
|
@ -15,7 +15,7 @@ local function open_nvim_tree(data)
|
|||
end
|
||||
|
||||
-- Auto open
|
||||
vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree })
|
||||
-- vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree })
|
||||
|
||||
-- Auto close
|
||||
vim.api.nvim_create_autocmd({"QuitPre"}, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue