From 22cfa037df71f9d188b0b457110b25e4c71a7b20 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 22 Mar 2023 10:32:11 +0100 Subject: [PATCH] nvim: Add fidget.nvim Added fidget plugin which shows the current loading status of LSPs. Only works for a few LSP (so far), including lua and python. Should automatically pick up new implementations on update. Will display a small loading notification in the lower right corner, useful to display status for those situations where LSP loading takes a long time (e.g. rust compilation requirements or a large python environment). FIXME Does not work for each python environment startup yet, and I am not sure why - sometimes just does not display its loading startup. --- nvim/.config/nvim/lazy-lock.json | 1 + nvim/.config/nvim/lua/plugins.lua | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 890cfbb..423307a 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -23,6 +23,7 @@ "dial.nvim": { "branch": "master", "commit": "54b503f906bc9e5ab85288414840a1b86d40769f" }, "dressing.nvim": { "branch": "master", "commit": "5f44f829481640be0f96759c965ae22a3bcaf7ce" }, "easyread.nvim": { "branch": "main", "commit": "73df5f4dc8fd38bef079b890b2a34412844c00b1" }, + "fidget.nvim": { "branch": "main", "commit": "688b4fec4517650e29c3e63cfbb6e498b3112ba1" }, "formatter.nvim": { "branch": "master", "commit": "ed949c13e1a942db29ababa35e8c7864ced90eb6" }, "friendly-snippets": { "branch": "main", "commit": "25ddcd96540a2ce41d714bd7fea2e7f75fea8ead" }, "fwatch.nvim": { "branch": "main", "commit": "a691f7349dc66285cd75a1a698dd28bca45f2bf8" }, diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index 43c4aa0..e3c96bc 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -220,7 +220,8 @@ return { }, "L3MON4D3/LuaSnip", "rafamadriz/friendly-snippets", - { "lukas-reineke/lsp-format.nvim", config = true } + { "lukas-reineke/lsp-format.nvim", config = true }, + { "j-hui/fidget.nvim", config = true } -- loading animations for some LSP }, config = function() require('plug._lsp') end, branch = "v2.x"