From 2e42bf1ef8c27173ed3a540135eada4c24abbaaf Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Fri, 12 Jun 2026 16:58:39 +0200 Subject: refactor(nvim): rewrite the highlight and extended marks plugins --- .config/nvim/init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.config/nvim/init.lua') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 5bdaaf5..a99e2c6 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -9,6 +9,12 @@ vim.g.dotfiles = { textwidth = { sh = 80, lua = 120, markdown = 120, gitcommit = 72, python = 88 }, } +-- Sets the window bar content and style (custom hl-groups WinBarCwd and WinBarFilePath) +-- Note that this will usually be cleared when loading a colorscheme (which do the equivalent of :hi clear) +vim.api.nvim_set_hl(0, "WinBarCwd", { bold = true }) +vim.api.nvim_set_hl(0, "WinBarFilePath", { link = "Normal" }) +vim.opt.winbar = "%#WinBarCwd#%{fnamemodify(getcwd(),':~')}%* | %#WinBarFilePath#%f%*" + ------------------------------------------------------------------------------------------------------------------------ -- Local functions ------------------------------------------------------------------------------------------------------------------------ @@ -204,7 +210,6 @@ vim.opt.ignorecase = true -- Search ignores case by default vim.opt.smartcase = true -- Search is case-sensitive if searching for uppercase characters vim.opt.conceallevel = 2 -- Hide text with the "conceal" syntax attribute vim.opt.showtabline = 2 -- Always show tabline -vim.opt.winbar = "%#WinBarCwd#%{fnamemodify(getcwd(),':~')}%* | %#WinBarFile#%f%*" vim.opt.winborder = "rounded" -- Rounded outline for floating windows vim.opt.updatetime = 1000 -- Swap file save frequency; also how often GitGutter signs update in ms vim.opt.list = true -- Display and other non-printables -- cgit v1.3.1