feat: add fold icons

This commit is contained in:
Sven Vogel 2024-11-24 16:52:23 +01:00
parent d7625104a6
commit 1978654d7c
2 changed files with 17 additions and 2 deletions

View File

@ -15,5 +15,18 @@ return {
warn = "", warn = "",
hint = "", hint = "",
info = "" info = ""
},
comments = {
fix = '',
todo = '',
hack = '',
warn = '',
perf = '',
note = '',
test = ''
},
folds = {
open = '',
closed = ''
} }
} }

View File

@ -9,6 +9,8 @@
-- --
-- ============================================== -- ==============================================
local icons = require'config.icons'
-- --
-- neovim global options -- neovim global options
-- .............................................. -- ..............................................
@ -38,8 +40,8 @@ opt.foldlevel = 99
opt.foldlevelstart = 99 opt.foldlevelstart = 99
opt.foldenable = true opt.foldenable = true
opt.fillchars = { opt.fillchars = {
foldopen = "", foldopen = icons.folds.open,
foldclose = "", foldclose = icons.folds.closed,
fold = " ", fold = " ",
foldsep = " ", foldsep = " ",
diff = "", diff = "",