feat: Add folding

This commit is contained in:
charburgx
2022-08-17 16:14:16 -05:00
parent 7d4050f716
commit ced4e476cf
6 changed files with 281 additions and 54 deletions

View File

@@ -16,6 +16,9 @@ M.defaults = {
show_symbol_details = true,
preview_bg_highlight = 'Pmenu',
winblend = 0,
autofold_depth = nil,
auto_unfold_hover = true,
fold_markers = { '', '' },
keymaps = { -- These keymaps can be a string or a table for multiple keys
close = { '<Esc>', 'q' },
goto_location = '<Cr>',
@@ -25,6 +28,11 @@ M.defaults = {
rename_symbol = 'r',
code_actions = 'a',
show_help = '?',
fold = 'h',
unfold = 'l',
fold_all = 'W',
unfold_all = 'E',
fold_reset = 'R',
},
lsp_blacklist = {},
symbol_blacklist = {},