mirror of
https://github.com/pnx/lualine-lsp-status
synced 2026-06-16 01:54:57 +02:00
lua/lualine/components/lsp-status.lua: get clients from current buffer only
This commit is contained in:
parent
c637858514
commit
ebe1c2db2f
1 changed files with 1 additions and 2 deletions
|
|
@ -74,8 +74,7 @@ end
|
|||
|
||||
function M:update_status()
|
||||
|
||||
local num_clients = #vim.tbl_keys(vim.lsp.get_clients())
|
||||
|
||||
local num_clients = #vim.tbl_keys(vim.lsp.get_clients({bufnr = 0}))
|
||||
local status = "inactive"
|
||||
if num_clients > 0 then
|
||||
status = "active"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue