From 31945d82d0d781480c70f35b2a32af46df165b42 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 22 Mar 2024 10:27:20 -0500 Subject: [PATCH] feat(nvim): add `visual-whitespace.nvim` --- dots/.config/nvim/lua/core/options.lua | 2 +- dots/.config/nvim/lua/plugins/configs/kanagawa.lua | 3 +++ dots/.config/nvim/lua/plugins/configs/outline.lua | 2 +- .../nvim/lua/plugins/configs/visual-whitespace.lua | 9 +++++++++ 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 dots/.config/nvim/lua/plugins/configs/visual-whitespace.lua diff --git a/dots/.config/nvim/lua/core/options.lua b/dots/.config/nvim/lua/core/options.lua index 275c8a92..059797cf 100755 --- a/dots/.config/nvim/lua/core/options.lua +++ b/dots/.config/nvim/lua/core/options.lua @@ -97,7 +97,7 @@ M.setup = function() -- Set listcharacters opt.list = true - opt.listchars:append("tab:-->") + opt.listchars:append("tab: ") opt.listchars:append("trail:·") opt.listchars:append("extends:◣") opt.listchars:append("precedes:◢") diff --git a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua index 57e23283..dbc503d9 100644 --- a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua +++ b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua @@ -332,6 +332,9 @@ return { { "@markup.heading.7.marker", { link = "@markup.heading.7" } }, { "@markup.heading.8.marker", { link = "@markup.heading.8" } }, { "@markup.quote.org", get_hl("@markup.quote", { bg = colors.sumiInk5 }) }, + + -- For Visual Whitespace plugin + { "visual-whitespace", get_hl("Visual", { fg = colors.fujiGray }) }, } if vim.g.neovide then diff --git a/dots/.config/nvim/lua/plugins/configs/outline.lua b/dots/.config/nvim/lua/plugins/configs/outline.lua index c8a836ab..58183937 100644 --- a/dots/.config/nvim/lua/plugins/configs/outline.lua +++ b/dots/.config/nvim/lua/plugins/configs/outline.lua @@ -3,6 +3,6 @@ return { "hedyhli/outline.nvim", cmd = { "Outline" }, keys = { { "o", "Outline", desc = "Toggle Outline" } }, - config = true + config = true, }, } diff --git a/dots/.config/nvim/lua/plugins/configs/visual-whitespace.lua b/dots/.config/nvim/lua/plugins/configs/visual-whitespace.lua new file mode 100644 index 00000000..41c52254 --- /dev/null +++ b/dots/.config/nvim/lua/plugins/configs/visual-whitespace.lua @@ -0,0 +1,9 @@ +return { + { + "mcauley-penney/visual-whitespace.nvim", + events = "ModeChanged", + opts = { + highlight = { link = "visual-whitespace" }, + }, + }, +}