diff options
Diffstat (limited to 'dotfiles/vim.lua')
-rw-r--r-- | dotfiles/vim.lua | 26 |
1 files changed, 7 insertions, 19 deletions
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 | ||