mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 09:18:44 +02:00
new feature custom lsp progress
This commit is contained in:
parent
7f02b38730
commit
06f0332a8f
8 changed files with 71 additions and 102 deletions
|
@ -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" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue