mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
update config
This commit is contained in:
parent
84a1939b9d
commit
82ab2d8832
3 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue