neovim: add relative filename in statusline

This commit is contained in:
2023-06-06 14:20:21 +03:00
parent dd2c4de206
commit f4c7f6844d

View File

@@ -17,6 +17,11 @@ local diagnostics = {
always_visible = true, always_visible = true,
} }
local relative_filename = {
"filename",
path = 1,
}
local filetype = { local filetype = {
function() function()
local filetype = vim.bo.filetype local filetype = vim.bo.filetype
@@ -113,7 +118,7 @@ lualine.setup({
sections = { sections = {
lualine_a = { mode }, lualine_a = { mode },
lualine_b = { branch }, lualine_b = { branch },
lualine_c = { diagnostics }, lualine_c = { diagnostics, relative_filename },
lualine_x = { diff, location, tabstop, fileformat }, lualine_x = { diff, location, tabstop, fileformat },
lualine_y = { filetype }, lualine_y = { filetype },
lualine_z = {}, lualine_z = {},