Update status line
This commit is contained in:
@@ -1,37 +1,55 @@
|
||||
local lualine = require("lualine")
|
||||
|
||||
-- Section "a"
|
||||
local mode = {
|
||||
"mode",
|
||||
}
|
||||
|
||||
-- Section "b"
|
||||
local branch = {
|
||||
"branch",
|
||||
icons_enabled = true,
|
||||
icon = "",
|
||||
}
|
||||
|
||||
local mode = {
|
||||
"mode",
|
||||
-- Section "c"
|
||||
local filename = {
|
||||
"filename",
|
||||
}
|
||||
local fileformat = {
|
||||
"fileformat",
|
||||
symbols = {
|
||||
unix = "",
|
||||
dos = "",
|
||||
mac = "",
|
||||
},
|
||||
}
|
||||
|
||||
-- Section "x"
|
||||
local location = {
|
||||
"location",
|
||||
}
|
||||
|
||||
-- Section "y"
|
||||
local encoding = {
|
||||
"encoding",
|
||||
}
|
||||
local filetype = {
|
||||
"filetype",
|
||||
}
|
||||
|
||||
local location = function()
|
||||
local line, column = unpack(vim.api.nvim_win_get_cursor(0))
|
||||
|
||||
return "Ln " .. line .. ", Col " .. column
|
||||
end
|
||||
|
||||
lualine.setup({
|
||||
options = {
|
||||
disabled_filetypes = { "NvimTree" },
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
component_separators = "",
|
||||
section_separators = "",
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { mode },
|
||||
lualine_b = { branch },
|
||||
lualine_c = {},
|
||||
lualine_c = { filename, fileformat },
|
||||
lualine_x = { location },
|
||||
lualine_y = { "encoding", filetype },
|
||||
lualine_y = { encoding, filetype },
|
||||
lualine_z = {},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user