From 0e09c3f4717ec2a4e3fcba6948eab6905b9881cb Mon Sep 17 00:00:00 2001 From: siduck76 Date: Fri, 27 Aug 2021 13:48:04 +0530 Subject: [PATCH] rm extra space from statusline icons --- lua/plugins/configs/lspconfig.lua | 6 ++++++ lua/plugins/configs/statusline.lua | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lua/plugins/configs/lspconfig.lua b/lua/plugins/configs/lspconfig.lua index ec74add..87076f4 100644 --- a/lua/plugins/configs/lspconfig.lua +++ b/lua/plugins/configs/lspconfig.lua @@ -68,12 +68,18 @@ local function setup_servers() lspconfig[lang].setup { on_attach = on_attach, capabilities = capabilities, + flags = { + debounce_text_changes = 500, + }, -- root_dir = vim.loop.cwd, } elseif lang == "lua" then lspconfig[lang].setup { on_attach = on_attach, capabilities = capabilities, + flags = { + debounce_text_changes = 500, + }, settings = { Lua = { diagnostics = { diff --git a/lua/plugins/configs/statusline.lua b/lua/plugins/configs/statusline.lua index a1830e8..04ffb71 100644 --- a/lua/plugins/configs/statusline.lua +++ b/lua/plugins/configs/statusline.lua @@ -21,7 +21,7 @@ local icon_styles = { left = " ", right = " ", main_icon = "  ", - vi_mode_icon = "  ", + vi_mode_icon = "  ", position_icon = "  ", }, @@ -209,7 +209,7 @@ components.mid.active[1] = { components.right.active[1] = { provider = function() if next(vim.lsp.buf_get_clients()) ~= nil then - return "  LSP " + return " LSP" else return "" end