rm extra space from statusline icons
This commit is contained in:
parent
2c33e3dd38
commit
0e09c3f471
|
@ -68,12 +68,18 @@ local function setup_servers()
|
||||||
lspconfig[lang].setup {
|
lspconfig[lang].setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
flags = {
|
||||||
|
debounce_text_changes = 500,
|
||||||
|
},
|
||||||
-- root_dir = vim.loop.cwd,
|
-- root_dir = vim.loop.cwd,
|
||||||
}
|
}
|
||||||
elseif lang == "lua" then
|
elseif lang == "lua" then
|
||||||
lspconfig[lang].setup {
|
lspconfig[lang].setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
flags = {
|
||||||
|
debounce_text_changes = 500,
|
||||||
|
},
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
|
|
|
@ -21,7 +21,7 @@ local icon_styles = {
|
||||||
left = " ",
|
left = " ",
|
||||||
right = " ",
|
right = " ",
|
||||||
main_icon = " ",
|
main_icon = " ",
|
||||||
vi_mode_icon = " ",
|
vi_mode_icon = " ",
|
||||||
position_icon = " ",
|
position_icon = " ",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ components.mid.active[1] = {
|
||||||
components.right.active[1] = {
|
components.right.active[1] = {
|
||||||
provider = function()
|
provider = function()
|
||||||
if next(vim.lsp.buf_get_clients()) ~= nil then
|
if next(vim.lsp.buf_get_clients()) ~= nil then
|
||||||
return " LSP "
|
return " LSP"
|
||||||
else
|
else
|
||||||
return ""
|
return ""
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue