about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-26 14:43:38 +0900
committersefidel <contact@sefidel.net>2022-02-26 14:43:38 +0900
commit27010418b30db788bed4854465d3c7d1c1d548a8 (patch)
tree82f9eb4340e444fa568dce06dad76171994120f7
parent4152f871951afdede2db2a08acff85aea2999c06 (diff)
downloadnvimrc-27010418b30db788bed4854465d3c7d1c1d548a8.tar.gz
nvimrc-27010418b30db788bed4854465d3c7d1c1d548a8.zip
feat(statusline): use fidget.nvim for LSP
-rw-r--r--fnl/nvrc/pack.fnl1
-rw-r--r--fnl/nvrc/packs/feline.fnl9
-rw-r--r--fnl/nvrc/packs/fidget.fnl4
3 files changed, 7 insertions, 7 deletions
diff --git a/fnl/nvrc/pack.fnl b/fnl/nvrc/pack.fnl
index 0bad77a..e33c6c8 100644
--- a/fnl/nvrc/pack.fnl
+++ b/fnl/nvrc/pack.fnl
@@ -31,6 +31,7 @@
 
 (pack! :neovim/nvim-lspconfig {:req :lspconfig
                                :requires [(pack :hrsh7th/cmp-nvim-lsp {:after :nvim-cmp})
+                                          (pack :j-hui/fidget.nvim {:req :fidget :after :nvim-lspconfig})
                                           (pack :ray-x/lsp_signature.nvim {:req :lsp_signature :after :nvim-lspconfig})]})
 
 (pack! :simrat39/rust-tools.nvim {:init :rust-tools :ft :rust})
diff --git a/fnl/nvrc/packs/feline.fnl b/fnl/nvrc/packs/feline.fnl
index 4953a7d..06d4f31 100644
--- a/fnl/nvrc/packs/feline.fnl
+++ b/fnl/nvrc/packs/feline.fnl
@@ -62,9 +62,6 @@
                              :icon ""
                              :right_sep " "
                              :hl {:fg (. colors :yellow)}}
-                      :load_fidget {:provider #(utils.lsp_fidget)
-                                    :enabled #(utils.will_it_fit 80)
-                                    :hl {:fg (. colors :green)}}
                       :diag_err {:provider :diagnostic_errors
                                  :enabled #(lsp.diagnostics_exist lsp_severity.ERROR)
                                  :left_sep " "
@@ -116,8 +113,6 @@
                               (. modules :lsp :diag_info)
                               (. modules :lsp :diag_hint)]
                      :inactive []}
-              :middle {:active [(. modules :lsp :load_fidget)]
-                       :inactive []}
               :right {:active [(. modules :git :branch)
                                (. modules :git :add)
                                (. modules :git :change)
@@ -129,8 +124,8 @@
                       :inactive []}})
 
 (local components
-       {:active [comps.left.active comps.middle.active comps.right.active]
-        :inactive [comps.left.inactive comps.middle.inactive comps.right.inactive]})
+       {:active [comps.left.active comps.right.active]
+        :inactive [comps.left.inactive comps.right.inactive]})
 
 (local properties
        {:force_inactive {:filetypes [:NvimTree :packer]
diff --git a/fnl/nvrc/packs/fidget.fnl b/fnl/nvrc/packs/fidget.fnl
new file mode 100644
index 0000000..9a2cad1
--- /dev/null
+++ b/fnl/nvrc/packs/fidget.fnl
@@ -0,0 +1,4 @@
+(local {: setup} (require :fidget))
+
+(setup {:text {:done "^.^!"
+               :spinner :dots}})