feat(lsp): remove fidget in favor of displaying progress in cmdline

This commit is contained in:
2026-04-13 03:24:50 +02:00
parent 8bd2600e10
commit 4e66d2960c
4 changed files with 16 additions and 7 deletions
+16 -1
View File
@@ -39,11 +39,26 @@ local function with_file(path, settings)
return vim.tbl_deep_extend("force", settings or {}, resp)
end
function M.on_attach(client, _)
function M.on_attach(client, buf)
client.settings = with_file(
string.format(".%s.json", client.name),
client.settings
) or client.settings
vim.api.nvim_create_autocmd("LspProgress", {
buffer = buf,
callback = function(ev)
local value = ev.data.params.value
vim.api.nvim_echo({ { value.message or "done" } }, false, {
id = "lsp." .. ev.data.params.token,
kind = "progress",
source = "vim.lsp",
title = value.title,
status = value.kind ~= "end" and "running" or "success",
percent = value.percentage,
})
end,
})
end
function M.setup()