-
Couldnt find a way to configure the subj. It would be great to have the capability to see the filename with the path (or part of the path along with the filename). Is there any chance to see it in the near future? |
Beta Was this translation helpful? Give feedback.
Answered by
patrykk21
Apr 26, 2024
Replies: 2 comments 5 replies
-
a little workaround
|
Beta Was this translation helpful? Give feedback.
3 replies
-
For future references for anyone wondering this is how I solved it :) vim.cmd("highlight St_relativepath guifg=#626a83 guibg=#2a2b36")
local stbufnr = function()
return vim.api.nvim_win_get_buf(vim.g.statusline_winid or 0)
end
M.ui = {
statusline = {
theme = "default",
order = { "mode", "relativepath", "file", "git", "%=", "lsp_msg", "%=", "diagnostics", "lsp", "cwd", "cursor" },
modules = {
relativepath = function()
local path = vim.api.nvim_buf_get_name(stbufnr())
if path == "" then
return ""
end
return "%#St_relativepath# " .. vim.fn.expand("%:.:h") .. " /"
end,
},
},
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Result