This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
null-ls always takes id: 1, which means null-ls appears in the lualine active server #1406
Answered
by
fitrh
xeros-and-ones
asked this question in
Q&A
-
is there a way to change that behavior, so that the language server corresponding to the filetype is before null-ls so it would show up in the lualine active server instead |
Beta Was this translation helpful? Give feedback.
Answered by
fitrh
Feb 16, 2023
Replies: 1 comment 1 reply
-
I think it's easier to tell your lualine component to return the client if its name is not null-ls. Something like this local lsp_server = {
function()
for _, client in ipairs(vim.lsp.buf_get_clients(0)) do
if client.name ~= "null-ls" then
return client.name
end
end
return "[No LSP Attached]"
end,
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xeros-and-ones
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it's easier to tell your lualine component to return the client if its name is not null-ls.
Something like this