neovim: add relative filename in statusline
This commit is contained in:
@@ -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 = {},
|
||||||
|
|||||||
Reference in New Issue
Block a user