Skip to content

Commit

Permalink
FIX: Temporary fix for vim.lsp.get_active_clients (#57)
Browse files Browse the repository at this point in the history
Handles vim.lsp.get_active_clients() depreciation in master branch;
removes error message for now
  • Loading branch information
mhho3082 authored Jun 15, 2024
1 parent 3ee08af commit 24acd04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/ltex_extra/commands-lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ local M = {}

function M.catch_ltex()
log.trace("catch_ltex")
local buf_clients = vim.lsp.get_active_clients({
local client_getter = vim.lsp.get_clients and vim.lsp.get_clients or vim.lsp.get_active_clients
local buf_clients = client_getter({
bufnr = vim.api.nvim_get_current_buf(),
name = "ltex",
})
Expand Down

0 comments on commit 24acd04

Please sign in to comment.