From 83f73293b88fc8f4d8129573b7412ded6d5563a5 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 2 Nov 2021 13:40:28 +0100 Subject: vim: lualine: use lualine-lsp-progress --- dotfiles/vim.lua | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) (limited to 'dotfiles') 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", "ft", "Telescope treesitter", mapopts) -- Lualine -local lsp_status = require('lsp-status') -lsp_status.config { - indicator_errors = "err:", - indicator_hint = "hint:", - indicator_info = "info:", - indicator_ok = "ok", - indicator_warnings = "warn:", - spinner_frames = {""}, - status_symbol = "lsp:", -} -lsp_status.register_progress() - -function LspStatus() - if #vim.lsp.buf_get_clients() < 1 then return "" end - - return lsp_status.status() -end - require("lualine").setup { options = { component_separators = "", @@ -221,7 +203,13 @@ require("lualine").setup { section_separators = "", }, sections = { - lualine_c = {'filename', LspStatus}, + lualine_c = { + 'filename', + { + 'lsp_progress', + display_components = { 'lsp_client_name', { 'title', 'percentage', 'message' } }, + }, + }, }, } -- cgit v1.2.3