mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-02 21:44:29 +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" },
|
||||
|
|
|
@ -3,6 +3,10 @@ if not status_ok then
|
|||
return
|
||||
end
|
||||
configs.setup({
|
||||
ensure_installed = {
|
||||
"lua",
|
||||
"vim",
|
||||
},
|
||||
ignore_install = { "phpdoc" }, -- List of parsers to ignore installing
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue