nvim: plugins: Add vim-matchup

We also enable the treesitter integration.
This commit is contained in:
Sanchayan Maity 2021-12-03 20:05:09 +05:30
parent cdb4ba7740
commit e488171b08
3 changed files with 9 additions and 1 deletions

View File

@ -92,6 +92,10 @@ vim.g.dispatch_no_maps = 1
-- vim-fugitive GBrowse GitLab
vim.g.fugitive_gitlab_domains = {'https://gitlab.freedesktop.org', 'https://gitlab.gnome.org/GNOME', 'https://gitlab.com'}
-- vim-matchup
vim.g.matchup_matchparen_offscreen = {}
vim.g.matchup_surround_enabled = 1
-- We do this to prevent the loading of the system fzf.vim plugin. This is
-- present at least on Arch/Manjaro
vim.api.nvim_command('set rtp-=/usr/share/vim/vimfiles')

View File

@ -130,6 +130,7 @@ local init = function ()
use {
'chentau/marks.nvim',
}
use 'andymass/vim-matchup'
end
return require('packer').startup(init)

View File

@ -95,5 +95,8 @@ require'nvim-treesitter.configs'.setup {
goto_node = '<CR>',
show_help = '?',
},
}
},
matchup = {
enable = true,
},
}