update config

This commit is contained in:
asep.komarudin 2024-05-19 20:00:20 +07:00
parent 84a1939b9d
commit 82ab2d8832
3 changed files with 7 additions and 5 deletions

View file

@ -60,12 +60,13 @@ return {
local msg = "LS Inactive"
local buf_ft = vim.bo.filetype
-- start register
local buf_clients = vim.lsp.get_clients()
local buf_clients = {}
buf_clients = vim.lsp.get_clients({ bufnr = 0 })
local buf_client_names = {}
if next(buf_clients) == nil then
-- TODO: clean up this if statement
if type(msg) == "boolean" or #msg == 0 then
return "LS Inactive"
return "LSP Inactive"
end
return msg
end