Use correct buffer argument
This commit is contained in:
parent
5d15147130
commit
7d974f5115
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ local lualine = require('lualine');
|
|||
|
||||
local function active_lsps()
|
||||
local buffer = vim.api.nvim_get_current_buf()
|
||||
local client_count = #vim.lsp.get_clients({ buffer = buffer })
|
||||
local client_count = #vim.lsp.get_clients({ bufnr = buffer })
|
||||
|
||||
return ('LSP: %d'):format(client_count)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue