nvim: lualine: remove lsp indicator
This commit is contained in:
parent
ec0cee28d9
commit
677193fa3a
1 changed files with 20 additions and 20 deletions
|
@ -350,26 +350,26 @@ M.lualine = function()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
ins_left {
|
-- ins_left {
|
||||||
-- Lsp server name .
|
-- -- Lsp server name .
|
||||||
function()
|
-- function()
|
||||||
local msg = 'No Active Lsp'
|
-- local msg = 'No Active Lsp'
|
||||||
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
|
-- local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
|
||||||
local clients = vim.lsp.get_active_clients()
|
-- local clients = vim.lsp.get_active_clients()
|
||||||
if next(clients) == nil then
|
-- if next(clients) == nil then
|
||||||
return msg
|
-- return msg
|
||||||
end
|
-- end
|
||||||
for _, client in ipairs(clients) do
|
-- for _, client in ipairs(clients) do
|
||||||
local filetypes = client.config.filetypes
|
-- local filetypes = client.config.filetypes
|
||||||
if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
|
-- if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
|
||||||
return client.name
|
-- return client.name
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
return msg
|
-- return msg
|
||||||
end,
|
-- end,
|
||||||
icon = ' LSP:',
|
-- icon = ' LSP:',
|
||||||
color = { fg = '#ffffff', gui = 'bold' },
|
-- color = { fg = '#ffffff', gui = 'bold' },
|
||||||
}
|
-- }
|
||||||
|
|
||||||
-- Add components to right sections
|
-- Add components to right sections
|
||||||
ins_right {
|
ins_right {
|
||||||
|
|
Loading…
Add table
Reference in a new issue