summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-05-22 13:14:15 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-05-22 13:40:39 +0200
commit9a1990d73f8942e0e2280ba215d052f622211b3b (patch)
treec73d91802ae9e20bd9950cb1cd071940b00d6df9
parent1fb329fc26bfe119dd48b99dba300af87048a132 (diff)
downloaddotfiles-9a1990d73f8942e0e2280ba215d052f622211b3b.tar.gz
dotfiles-9a1990d73f8942e0e2280ba215d052f622211b3b.zip
misc(nvim): set winbar to show cwd and path
-rw-r--r--.config/nvim/init.lua1
-rw-r--r--.config/nvim/plugin/40-colors.lua2
2 files changed, 3 insertions, 0 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index 7ffe81f..5c40077 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -174,6 +174,7 @@ vim.opt.conceallevel = 2 -- Hide text with the "conceal" syntax attribute
vim.opt.showtabline = 2 -- Always show tabline
vim.opt.list = true -- Display <Tab> and other non-printables
vim.opt.winborder = "rounded" -- Rounded outline for floating windows
+vim.o.winbar = "%#WinBarCwd#%{fnamemodify(getcwd(),':~')}%* | %#WinBarFile#%f%*"
vim.opt.listchars = { -- Characters used by 'list'
tab = "> ", -- Tab
trail = "-", -- Trailing space
diff --git a/.config/nvim/plugin/40-colors.lua b/.config/nvim/plugin/40-colors.lua
index 914ec2b..abb3bdb 100644
--- a/.config/nvim/plugin/40-colors.lua
+++ b/.config/nvim/plugin/40-colors.lua
@@ -54,6 +54,8 @@ local function adjust_highlight()
if vim.g.colors_name == "solarized" then
vim.api.nvim_set_hl(0, "EndOfBuffer", { fg = solarized_colors.base0, update = true })
vim.api.nvim_set_hl(0, "MatchParen", { link = "CurSearch" })
+ vim.api.nvim_set_hl(0, "WinBarCwd", { fg = solarized_colors.blue, italic = true })
+ vim.api.nvim_set_hl(0, "WinBarFile", { italic = true })
if vim.o.background == "light" then
vim.api.nvim_set_hl(0, "TabLineSel", { bg = "#edffd5" })
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#edffd5" })