Move lualine setup to statusline.lua

This commit is contained in:
2022-01-11 22:50:35 +03:00
parent e76dbd90e4
commit fc0dee4673
2 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
local function line_and_column()
local line, column = unpack(vim.api.nvim_win_get_cursor(0))
return "Ln " .. line .. ", Col " .. column
end
require("lualine").setup({
options = {
component_separators = {left = "", right = ""},
section_separators = {left = "", right = ""},
disabled_filetypes = {"NvimTree"}
},
sections = {
lualine_a = {},
lualine_b = {},
lualine_c = {"branch", "diff", "filename"},
lualine_x = {line_and_column, "encoding"},
lualine_y = {},
lualine_z = {}
}
})