Skip to content

Commit a331c29

Browse files
committed
fix(vim-matchup): improve stability when used with nvim-cmp
1 parent bf96ca3 commit a331c29

File tree

1 file changed

+16
-18
lines changed
  • lua/astrocommunity/motion/vim-matchup

1 file changed

+16
-18
lines changed

lua/astrocommunity/motion/vim-matchup/init.lua

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,26 @@ return {
33
lazy = true,
44
specs = {
55
{
6-
"nvim-treesitter/nvim-treesitter",
7-
dependencies = {
8-
{
9-
"andymass/vim-matchup",
10-
dependencies = {
11-
"AstroNvim/astrocore",
12-
opts = {
13-
options = {
14-
g = {
15-
matchup_matchparen_pumvisible = 0,
16-
matchup_matchparen_offscreen = {
17-
method = "popup",
18-
fullwidth = 1,
19-
highlight = "Normal",
20-
syntax_hl = 1,
21-
},
22-
},
23-
},
6+
"AstroNvim/astrocore",
7+
opts = {
8+
options = {
9+
g = {
10+
matchup_matchparen_pumvisible = 0,
11+
matchup_matchparen_nomode = "i",
12+
matchup_matchparen_deferred = 1,
13+
matchup_matchparen_offscreen = {
14+
method = "popup",
15+
fullwidth = 1,
16+
highlight = "Normal",
17+
syntax_hl = 1,
2418
},
2519
},
2620
},
2721
},
22+
},
23+
{
24+
"nvim-treesitter/nvim-treesitter",
25+
dependencies = { "andymass/vim-matchup" },
2826
opts = { matchup = { enable = true } },
2927
},
3028
},

0 commit comments

Comments
 (0)