Skip to content

Commit 4e4364c

Browse files
committed
chore(matchup): enable some vim-matchup features
1 parent 64a070c commit 4e4364c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
return function()
2+
vim.g.matchup_transmute_enabled = 1
3+
vim.g.matchup_surround_enabled = 1
4+
vim.g.matchup_matchparen_offscreen = { method = "popup" }
5+
end

lua/modules/plugins/editor.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,11 @@ editor["nvim-treesitter/nvim-treesitter"] = {
121121
event = "BufReadPre",
122122
config = require("editor.treesitter"),
123123
dependencies = {
124-
{ "andymass/vim-matchup" },
125124
{ "nvim-treesitter/nvim-treesitter-textobjects" },
125+
{
126+
"andymass/vim-matchup",
127+
init = require("editor.matchup"),
128+
},
126129
{
127130
"windwp/nvim-ts-autotag",
128131
config = require("editor.ts-autotag"),

0 commit comments

Comments
 (0)