From 1978654d7cb599ca2e43c14d35fb3650952664ad Mon Sep 17 00:00:00 2001 From: servostar Date: Sun, 24 Nov 2024 16:52:23 +0100 Subject: [PATCH] feat: add fold icons --- lua/config/icons.lua | 13 +++++++++++++ lua/config/opts.lua | 6 ++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/lua/config/icons.lua b/lua/config/icons.lua index 72861d9..2b54c1b 100644 --- a/lua/config/icons.lua +++ b/lua/config/icons.lua @@ -15,5 +15,18 @@ return { warn = "", hint = "", info = "" + }, + comments = { + fix = '', + todo = '', + hack = '', + warn = '', + perf = '', + note = '', + test = '⏲' + }, + folds = { + open = '', + closed = '' } } diff --git a/lua/config/opts.lua b/lua/config/opts.lua index f819e93..7324d4f 100644 --- a/lua/config/opts.lua +++ b/lua/config/opts.lua @@ -9,6 +9,8 @@ -- -- ============================================== +local icons = require'config.icons' + -- -- neovim global options -- .............................................. @@ -38,8 +40,8 @@ opt.foldlevel = 99 opt.foldlevelstart = 99 opt.foldenable = true opt.fillchars = { - foldopen = "", - foldclose = "", + foldopen = icons.folds.open, + foldclose = icons.folds.closed, fold = " ", foldsep = " ", diff = "╱",