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,
|
||||
}
|
||||
|
||||
ins_left {
|
||||
-- Lsp server name .
|
||||
function()
|
||||
local msg = 'No Active Lsp'
|
||||
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
|
||||
local clients = vim.lsp.get_active_clients()
|
||||
if next(clients) == nil then
|
||||
return msg
|
||||
end
|
||||
for _, client in ipairs(clients) do
|
||||
local filetypes = client.config.filetypes
|
||||
if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
|
||||
return client.name
|
||||
end
|
||||
end
|
||||
return msg
|
||||
end,
|
||||
icon = ' LSP:',
|
||||
color = { fg = '#ffffff', gui = 'bold' },
|
||||
}
|
||||
-- ins_left {
|
||||
-- -- Lsp server name .
|
||||
-- function()
|
||||
-- local msg = 'No Active Lsp'
|
||||
-- local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
|
||||
-- local clients = vim.lsp.get_active_clients()
|
||||
-- if next(clients) == nil then
|
||||
-- return msg
|
||||
-- end
|
||||
-- for _, client in ipairs(clients) do
|
||||
-- local filetypes = client.config.filetypes
|
||||
-- if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
|
||||
-- return client.name
|
||||
-- end
|
||||
-- end
|
||||
-- return msg
|
||||
-- end,
|
||||
-- icon = ' LSP:',
|
||||
-- color = { fg = '#ffffff', gui = 'bold' },
|
||||
-- }
|
||||
|
||||
-- Add components to right sections
|
||||
ins_right {
|
||||
|
|
Loading…
Add table
Reference in a new issue