17 lines
493 B
Lua
17 lines
493 B
Lua
return {
|
|
'anuvyklack/pretty-fold.nvim',
|
|
config = function()
|
|
require('pretty-fold').ft_setup('lua', {
|
|
matchup_patterns = {
|
|
{ '^%s*do$', 'end' }, -- do ... end blocks
|
|
{ '^%s*if', 'end' }, -- if ... end
|
|
{ '^%s*for', 'end' }, -- for
|
|
{ 'function%s*%(', 'end' }, -- 'function( or 'function (''
|
|
{ '{', '}' },
|
|
{ '%(', ')' }, -- % to escape lua pattern char
|
|
{ '%[', ']' }, -- % to escape lua pattern char
|
|
},
|
|
})
|
|
end,
|
|
}
|