new feature custom lsp progress

This commit is contained in:
asep komarudin 2023-03-03 19:15:17 +07:00
parent 7f02b38730
commit 06f0332a8f
8 changed files with 71 additions and 102 deletions

View file

@ -170,6 +170,11 @@ local lsp_info = {
--icon = " ",
icon = icons.ui.Gear .. "",
}
local lsp_progress = {}
local data_exists, lspprogress = pcall(require, "lsp-progress")
if data_exists then
lsp_progress = lspprogress.progress
end
lualine.setup({
options = {
@ -202,7 +207,7 @@ lualine.setup({
sections = {
lualine_a = { branch },
lualine_b = { mode },
lualine_c = { diagnostics, lsp_info },
lualine_c = { diagnostics, lsp_info, lsp_progress },
-- lualine_c = { diagnostics, lsp_info, "lsp_progress" },
-- lualine_c = { file_name, lsp_info },
-- lualine_x = { "encoding", "fileformat", "filetype" },