diff options
author | Minijackson <minijackson@riseup.net> | 2021-11-02 13:40:28 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2021-11-02 13:40:28 +0100 |
commit | 83f73293b88fc8f4d8129573b7412ded6d5563a5 (patch) | |
tree | 045d525578d4d6d968af362aa061b748f8a6bca7 | |
parent | 3eb90f7e53a17a06d60c9e36edef86c847e1710f (diff) | |
download | nixos-config-reborn-83f73293b88fc8f4d8129573b7412ded6d5563a5.tar.gz nixos-config-reborn-83f73293b88fc8f4d8129573b7412ded6d5563a5.zip |
vim: lualine: use lualine-lsp-progress
-rw-r--r-- | common/vim.nix | 2 | ||||
-rw-r--r-- | dotfiles/vim.lua | 26 |
2 files changed, 8 insertions, 20 deletions
diff --git a/common/vim.nix b/common/vim.nix index 2a70864..9bcba5f 100644 --- a/common/vim.nix +++ b/common/vim.nix | |||
@@ -68,9 +68,9 @@ let | |||
68 | undotree | 68 | undotree |
69 | gruvbox-community | 69 | gruvbox-community |
70 | lualine-nvim | 70 | lualine-nvim |
71 | lualine-lsp-progress | ||
71 | gitsigns-nvim | 72 | gitsigns-nvim |
72 | vim-dirvish | 73 | vim-dirvish |
73 | lsp-status-nvim | ||
74 | diffview-nvim | 74 | diffview-nvim |
75 | 75 | ||
76 | nvim-compe | 76 | nvim-compe |
diff --git a/dotfiles/vim.lua b/dotfiles/vim.lua index 4baaf18..ce04561 100644 --- a/dotfiles/vim.lua +++ b/dotfiles/vim.lua | |||
@@ -196,24 +196,6 @@ map("n", "<leader>ft", "<cmd>Telescope treesitter<cr>", mapopts) | |||
196 | 196 | ||
197 | -- Lualine | 197 | -- Lualine |
198 | 198 | ||
199 | local lsp_status = require('lsp-status') | ||
200 | lsp_status.config { | ||
201 | indicator_errors = "err:", | ||
202 | indicator_hint = "hint:", | ||
203 | indicator_info = "info:", | ||
204 | indicator_ok = "ok", | ||
205 | indicator_warnings = "warn:", | ||
206 | spinner_frames = {""}, | ||
207 | status_symbol = "lsp:", | ||
208 | } | ||
209 | lsp_status.register_progress() | ||
210 | |||
211 | function LspStatus() | ||
212 | if #vim.lsp.buf_get_clients() < 1 then return "" end | ||
213 | |||
214 | return lsp_status.status() | ||
215 | end | ||
216 | |||
217 | require("lualine").setup { | 199 | require("lualine").setup { |
218 | options = { | 200 | options = { |
219 | component_separators = "", | 201 | component_separators = "", |
@@ -221,7 +203,13 @@ require("lualine").setup { | |||
221 | section_separators = "", | 203 | section_separators = "", |
222 | }, | 204 | }, |
223 | sections = { | 205 | sections = { |
224 | lualine_c = {'filename', LspStatus}, | 206 | lualine_c = { |
207 | 'filename', | ||
208 | { | ||
209 | 'lsp_progress', | ||
210 | display_components = { 'lsp_client_name', { 'title', 'percentage', 'message' } }, | ||
211 | }, | ||
212 | }, | ||
225 | }, | 213 | }, |
226 | } | 214 | } |
227 | 215 | ||