summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-25 00:18:45 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-25 00:18:45 +0200
commitf5dc5ddb58ab0e754fef379e4d0ce785f6fe0883 (patch)
tree72ab89a39fe7ee8b16365b9a4d3da5739af66e40
parent06f56aa7a15ce32dbcab21aeb9f27dc48aea2ede (diff)
Replace fidget with lualine-lsp-progress
-rw-r--r--fnl/config/fidget.fnl6
-rw-r--r--fnl/config/lualine.fnl7
-rw-r--r--fnl/plugins.fnl7
3 files changed, 8 insertions, 12 deletions
diff --git a/fnl/config/fidget.fnl b/fnl/config/fidget.fnl
deleted file mode 100644
index 1b9ca81..0000000
--- a/fnl/config/fidget.fnl
+++ /dev/null
@@ -1,6 +0,0 @@
-;; Show lsp progress.
-(module config.fidget {autoload {util config.util}})
-
-(def- opts {:text {:spinner :dots_snake}})
-
-(util.setup :fidget opts)
diff --git a/fnl/config/lualine.fnl b/fnl/config/lualine.fnl
index 833e68e..459909c 100644
--- a/fnl/config/lualine.fnl
+++ b/fnl/config/lualine.fnl
@@ -52,6 +52,11 @@
:disabled_buftypes [:nvim-tree]
:cond hide_in_width})
+(def- lsp-progress {1 :lsp_progress
+ :display_components [[:title :percentage :message]]
+ :timer {:progress_enddelay 500
+ :lsp_client_name_enddelay 500}})
+
(def- opts {:options {:icons_enabled true
:theme :auto
:component_separators ""
@@ -63,7 +68,7 @@
:sections {:lualine_a [:mode]
:lualine_b [branch diff]
:lualine_c {}
- :lualine_x [language-server diagnostics]
+ :lualine_x [lsp_progress language-server diagnostics]
:lualine_y [filetype]
:lualine_z [:location :progress]}
:inactive_sections {:lualine_a [:mode]
diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl
index aa2a552..ecabffe 100644
--- a/fnl/plugins.fnl
+++ b/fnl/plugins.fnl
@@ -44,11 +44,7 @@
:config (fn []
(require :config.gitsigns))}])
-(def lsp [{1 :j-hui/fidget.nvim
- :event :BufReadPre
- :config (fn []
- (require :config.fidget))}
- {1 :williamboman/mason.nvim
+(def lsp [{1 :williamboman/mason.nvim
:event :BufReadPre
:config (fn []
(require :config.lsp.mason))}
@@ -168,6 +164,7 @@
:config (fn []
(require :config.lualine))
:requires [:kyazdani42/nvim-web-devicons]}
+ {1 :arkav/lualine-lsp-progress}
{1 :aktersnurra/minibar.nvim
:event :BufRead
:config (fn []