summaryrefslogtreecommitdiffstats
path: root/dotfiles
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2021-11-02 13:40:28 +0100
committerMinijackson <minijackson@riseup.net>2021-11-02 13:40:28 +0100
commit83f73293b88fc8f4d8129573b7412ded6d5563a5 (patch)
tree045d525578d4d6d968af362aa061b748f8a6bca7 /dotfiles
parent3eb90f7e53a17a06d60c9e36edef86c847e1710f (diff)
downloadnixos-config-reborn-83f73293b88fc8f4d8129573b7412ded6d5563a5.tar.gz
nixos-config-reborn-83f73293b88fc8f4d8129573b7412ded6d5563a5.zip
vim: lualine: use lualine-lsp-progress
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/vim.lua26
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
199local lsp_status = require('lsp-status')
200lsp_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}
209lsp_status.register_progress()
210
211function LspStatus()
212 if #vim.lsp.buf_get_clients() < 1 then return "" end
213
214 return lsp_status.status()
215end
216
217require("lualine").setup { 199require("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