1
0
Fork 0
mirror of https://github.com/pnx/lualine-lsp-status synced 2026-07-04 01:13:39 +02:00

lua/lualine/components/lsp-status.lua: get clients from current buffer only

This commit is contained in:
Henrik Hautakoski 2024-09-06 14:16:56 +02:00
parent c637858514
commit ebe1c2db2f

View file

@ -74,8 +74,7 @@ end
function M:update_status() 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" local status = "inactive"
if num_clients > 0 then if num_clients > 0 then
status = "active" status = "active"