summaryrefslogtreecommitdiffstats
path: root/.config/nvim/init.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/init.lua')
-rw-r--r--.config/nvim/init.lua7
1 files changed, 6 insertions, 1 deletions
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 <Tab> and other non-printables