nvim: display current directory on the right of lualine

This commit is contained in:
Łukasz Pankowski 2023-11-24 22:37:13 +01:00
parent fee1f12743
commit 3070322f7d

View File

@ -1,3 +1,7 @@
local function cwd()
return vim.fn.getcwd()
end
return { return {
-- Colorscheme -- Colorscheme
{ {
@ -22,6 +26,9 @@ return {
component_separators = '|', component_separators = '|',
section_separators = '', section_separators = '',
}, },
sections = {
lualine_x = { cwd, 'encoding', 'fileformat', 'filetype' }
}
}, },
}, },