treesitter folding with space x :)
This commit is contained in:
parent
5dde3be206
commit
2c4617f462
@ -48,3 +48,8 @@ opt.smartindent= true
|
||||
|
||||
-- disable nvim intro
|
||||
opt.shortmess:append('sI')
|
||||
|
||||
-- Treesitter based folding
|
||||
opt.foldlevel = 20
|
||||
opt.foldmethod = 'expr'
|
||||
opt.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||
|
@ -167,4 +167,11 @@ command_center.add({
|
||||
{ 'n', '<leader>a', silent_noremap },
|
||||
},
|
||||
},
|
||||
{
|
||||
description = 'Toggle fold',
|
||||
cmd = 'za',
|
||||
keybindings = {
|
||||
{ 'n', '<space>x', silent_noremap },
|
||||
},
|
||||
},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user