summaryrefslogtreecommitdiffstats
path: root/init.lua
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
commitc925fefe456a9819a511cf11ea64a54dc0956242 (patch)
tree49aa09a0445ec2107b168e9956bafac75c747fae /init.lua
parent550ba704b6d0fabd3ac0077c2c1067029c8a0264 (diff)
downloadnvim-config-c925fefe456a9819a511cf11ea64a54dc0956242.tar.gz
nvim-config-c925fefe456a9819a511cf11ea64a54dc0956242.zip
misc(nvim): set winbar to show cwd and path
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 7ffe81f..5c40077 100644
--- a/init.lua
+++ b/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