Updated nvim for winbar and blink cmp

This commit is contained in:
2026-02-17 08:03:38 +02:00
parent a5be4df3b9
commit 00b70e752e
2 changed files with 19 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ function _G.get_winbar()
local config = mode_config[mode] or { label = mode, hl = 'WinBarNormal' }
local filepath = vim.fn.expand('%:p')
local filepath = vim.fn.expand('%:t')
local modified = vim.bo.modified and ' [*]' or ''
local encoding = vim.bo.fileencoding ~= '' and vim.bo.fileencoding or vim.o.encoding
local filesize = _G.get_filesize()
@@ -62,7 +62,7 @@ function _G.get_winbar()
-- Build the winbar string with encoding on right side first
return string.format(
'%%#%s# %s %%#WinBarFilepath# %s%%#WarningMsg#%s%%=%%#WinBarInfo# %s %s:%s [%s] %s',
'%%#%s# %s %%#WinBarFilepath# filename: %s%%#WarningMsg#%s%%=%%#WinBarInfo# %s %s:%s [%s] %s',
config.hl,
config.label,
filepath,