From 405d355b3e38b12ba2b63c6ac698bc27e84aaba9 Mon Sep 17 00:00:00 2001 From: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com> Date: Sat, 17 Jun 2023 13:50:27 +0800 Subject: [PATCH] feat(ui)!: unify UI component indent-blankline --- lua/modules/configs/ui/catppuccin.lua | 4 ++++ lua/modules/configs/ui/indent-blankline.lua | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lua/modules/configs/ui/catppuccin.lua b/lua/modules/configs/ui/catppuccin.lua index ea1265f53..1925eb23b 100644 --- a/lua/modules/configs/ui/catppuccin.lua +++ b/lua/modules/configs/ui/catppuccin.lua @@ -112,6 +112,10 @@ return function() -- For mason.nvim MasonNormal = { link = "NormalFloat" }, + -- For indent-blankline + IndentBlanklineChar = { fg = cp.surface0 }, + IndentBlanklineContextChar = { fg = cp.surface2, style = { "bold" } }, + -- For nvim-cmp and wilder.nvim Pmenu = { fg = cp.overlay2, bg = transparent_background and cp.none or cp.base }, PmenuBorder = { fg = cp.surface1, bg = transparent_background and cp.none or cp.base }, diff --git a/lua/modules/configs/ui/indent-blankline.lua b/lua/modules/configs/ui/indent-blankline.lua index 99b479e63..36f4516d9 100644 --- a/lua/modules/configs/ui/indent-blankline.lua +++ b/lua/modules/configs/ui/indent-blankline.lua @@ -1,11 +1,10 @@ return function() require("indent_blankline").setup({ char = "│", + context_char = "┃", show_first_indent_level = true, filetype_exclude = { "", -- for all buffers without a file type - "NvimTree", - "TelescopePrompt", "dashboard", "dotooagenda", "flutterToolsOutline", @@ -16,10 +15,13 @@ return function() "json", "log", "markdown", + "NvimTree", "peekaboo", "startify", + "TelescopePrompt", "todoist", "txt", + "undotree", "vimwiki", "vista", },