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
-1
View File
@@ -41,7 +41,6 @@ require("pack").setup({
"https://github.com/owallb/mason-auto-install.nvim",
"https://github.com/mfussenegger/nvim-dap",
"https://github.com/numToStr/Comment.nvim",
"https://github.com/j-hui/fidget.nvim",
"https://github.com/rbong/vim-flog",
"https://github.com/tpope/vim-fugitive",
"https://github.com/lewis6991/gitsigns.nvim",
+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()
-1
View File
@@ -1 +0,0 @@
require("fidget").setup({})
-4
View File
@@ -9,10 +9,6 @@
"src": "https://github.com/saghen/blink.cmp",
"version": "1.0.0 - 2.0.0"
},
"fidget.nvim": {
"rev": "889e2e96edef4e144965571d46f7a77bcc4d0ddf",
"src": "https://github.com/j-hui/fidget.nvim"
},
"gitsigns.nvim": {
"rev": "0d797daee85366bc242580e352a4f62d67557b84",
"src": "https://github.com/lewis6991/gitsigns.nvim"