aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2024-05-17 17:40:27 +0800
committerGitHub <noreply@github.com>2024-05-17 17:40:27 +0800
commita284b14b3a9c4851f900286cd7eb68e3a8f90b1c (patch)
treebd7cbec9ebfcf54f0858bda150b28e1b65ee270b /plugin
parentfix: use new version as check condition (#3157) (diff)
downloadnvim-lspconfig-a284b14b3a9c4851f900286cd7eb68e3a8f90b1c.tar
nvim-lspconfig-a284b14b3a9c4851f900286cd7eb68e3a8f90b1c.tar.gz
nvim-lspconfig-a284b14b3a9c4851f900286cd7eb68e3a8f90b1c.tar.bz2
nvim-lspconfig-a284b14b3a9c4851f900286cd7eb68e3a8f90b1c.tar.lz
nvim-lspconfig-a284b14b3a9c4851f900286cd7eb68e3a8f90b1c.tar.xz
nvim-lspconfig-a284b14b3a9c4851f900286cd7eb68e3a8f90b1c.tar.zst
nvim-lspconfig-a284b14b3a9c4851f900286cd7eb68e3a8f90b1c.zip
refactor: move all old get_clients to new compatible (#3159)
Diffstat (limited to 'plugin')
-rw-r--r--plugin/lspconfig.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/lspconfig.lua b/plugin/lspconfig.lua
index 02eb5031..254ca6cc 100644
--- a/plugin/lspconfig.lua
+++ b/plugin/lspconfig.lua
@@ -135,7 +135,7 @@ api.nvim_create_user_command('LspStop', function(info)
end
if not server_id then
- local servers_on_buffer = lsp.get_active_clients { bufnr = current_buf }
+ local servers_on_buffer = require('lspconfig.util').get_lsp_clients { bufnr = current_buf }
for _, client in ipairs(servers_on_buffer) do
if client.attached_buffers[current_buf] then
client.stop(force)