📦 Initial Commit
This commit is contained in:
parent
5125fd927a
commit
e77acb091e
23 changed files with 516 additions and 24 deletions
16
lua/custom/plugins/fold.lua
Normal file
16
lua/custom/plugins/fold.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue