style(nvim): Port vim lightline setup to nvim lualine

This commit is contained in:
Ahmad Ansori Palembani 2024-04-18 11:17:56 +07:00
parent 4046c7f772
commit 4c5d2522d5
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -14,10 +14,29 @@ return {
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" }, dependencies = { "nvim-tree/nvim-web-devicons" },
config = function () config = function ()
local _progress = require("lualine.components.progress")
local progress = function ()
return "" .. _progress()
end
local _location = require("lualine.components.location")
local location = function ()
return "" .. _location()
end
require("lualine").setup { require("lualine").setup {
options = { options = {
theme = "tokyonight" -- FIXME: Use my own colourscheme theme = "tokyonight", -- FIXME: Use my own colourscheme
} -- theme = "zi",
section_separators = '',
component_separators = '',
},
sections = {
lualine_a = {"mode"},
lualine_b = {"branch", "diff", "diagnostics"},
lualine_c = {"filename"},
lualine_x = {location},
lualine_y = {progress},
lualine_z = {"encoding", "fileformat", "filetype"},
},
} }
end, end,
}, },