mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-31 05:46:53 +00:00
Nvim restart (#9)
* chore(nvim): remove astronvim and configs * feat(nvim): new, custom nvim configuration
This commit is contained in:
55
config/nvim/lua/plugins/pretty-fold.lua
Normal file
55
config/nvim/lua/plugins/pretty-fold.lua
Normal file
@@ -0,0 +1,55 @@
|
||||
-- Fold code.
|
||||
|
||||
return {
|
||||
"anuvyklack/pretty-fold.nvim",
|
||||
config = {
|
||||
fill_char = "•",
|
||||
sections = {
|
||||
left = {
|
||||
"content",
|
||||
},
|
||||
right = {
|
||||
" ",
|
||||
"number_of_folded_lines",
|
||||
": ",
|
||||
"percentage",
|
||||
" ",
|
||||
function(config) return config.fill_char:rep(3) end,
|
||||
},
|
||||
},
|
||||
|
||||
remove_fold_markers = false,
|
||||
|
||||
-- Keep the indentation of the content of the fold string.
|
||||
keep_indentation = true,
|
||||
|
||||
-- Possible values:
|
||||
-- "delete" : Delete all comment signs from the fold string.
|
||||
-- "spaces" : Replace all comment signs with equal number of spaces.
|
||||
-- false : Do nothing with comment signs.
|
||||
process_comment_signs = "spaces",
|
||||
|
||||
-- Comment signs additional to the value of `&commentstring` option.
|
||||
comment_signs = {
|
||||
{ "/**", "*/" }, -- multiline comment
|
||||
{ "<!--", "-->" }, -- multiline comment
|
||||
{ "%--[[", "--]]" }, -- multiline comment
|
||||
},
|
||||
|
||||
-- List of patterns that will be removed from content foldtext section.
|
||||
stop_words = {
|
||||
"@brief%s*", -- (for C++) Remove '@brief' and all spaces after.
|
||||
},
|
||||
|
||||
add_close_pattern = true,
|
||||
matchup_patterns = {
|
||||
{ "{", "}" },
|
||||
{ "%(", ")" }, -- % to escape lua pattern char
|
||||
{ "%[", "]" }, -- % to escape lua pattern char
|
||||
{ "if%s", "end" },
|
||||
{ "do%s", "end" },
|
||||
{ "for%s", "end" },
|
||||
{ "function%s*%(", "end" }, -- 'function(' or 'function ('
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user