mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-18 23:11:12 +01:00
plugins/lualine: drop deprecated vim.lsp.get_active_clients
Use vim.lsp.get_clients({ bufnr = 0 }).
This commit is contained in:
parent
908921b771
commit
51bbde565a
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
function()
|
||||
local msg = ""
|
||||
local buf_ft = vim.bo[0].filetype
|
||||
local clients = vim.lsp.get_active_clients()
|
||||
local clients = vim.lsp.get_clients({ bufnr = 0 })
|
||||
if next(clients) == nil then
|
||||
return msg
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue