summaryrefslogtreecommitdiffstats
path: root/init.lua
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-06-12 16:58:39 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-06-12 22:57:30 +0200
commitced6d974fc7debac76c32bac9cd131894bbccf61 (patch)
treef9c5c875dc985dbf5d54adb72eebba2241846ddc /init.lua
parent2645f637782c81bfc5b4b2d4a139acd6023aa0a4 (diff)
downloadnvim-config-ced6d974fc7debac76c32bac9cd131894bbccf61.tar.gz
nvim-config-ced6d974fc7debac76c32bac9cd131894bbccf61.zip
refactor(nvim): rewrite the highlight and extended marks plugins
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 5bdaaf5..a99e2c6 100644
--- a/init.lua
+++ b/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 <Tab> and other non-printables