add: nvim: matchup

This commit is contained in:
qwjyh 2023-05-05 10:01:37 +09:00
parent b891c7123b
commit 4bf380f6d4

View file

@ -103,6 +103,17 @@ require('lazy').setup({
"nvim-treesitter/nvim-treesitter-textobjects", "nvim-treesitter/nvim-treesitter-textobjects",
}, },
}, },
{
"andymass/vim-matchup",
config = function ()
vim.g.matchup_matchparen_offscreen = { method = "popup" }
require'nvim-treesitter.configs'.setup {
matchup = {
enable = true,
}
}
end,
},
{ {
'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope.nvim',
dependencies = { dependencies = {
@ -289,6 +300,7 @@ parser_config.satysfi = {
-- setup -- setup
require'nvim-treesitter.configs'.setup { require'nvim-treesitter.configs'.setup {
ensure_installed = { ensure_installed = {
'julia',
'satysfi', 'satysfi',
}, },
highlight = { highlight = {
@ -306,6 +318,9 @@ require'nvim-treesitter.configs'.setup {
indent = { indent = {
enable = true, enable = true,
}, },
matchup = {
enable = true,
},
textobjects = { textobjects = {
select = { select = {
enable = true, enable = true,