fixup: adapt to deprecations in Nvim 0.10 (#3112)

This commit is contained in:
Christian Clason
2024-05-17 18:10:21 +02:00
committed by GitHub
parent bbdbb7593f
commit 33f04c3a86
2 changed files with 2 additions and 2 deletions

View File

@@ -394,7 +394,7 @@ end
local function check_capabilities(method, bufnr)
--TODO(clason): remove when dropping support for Nvim 0.9
local get_clients = vim.fn.has "nvim-0.10" and vim.lsp.get_clients or vim.lsp.get_active_clients
local get_clients = vim.fn.has "nvim-0.10" == 1 and vim.lsp.get_clients or vim.lsp.get_active_clients
local clients = get_clients { bufnr = bufnr }
for _, client in pairs(clients) do