Skip to content

Commit 7f4e800

Browse files
committed
refactor(nvim): replace deprecated stop_client with client:stop
1 parent a726171 commit 7f4e800

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua/plugins/fugitive.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ return {
3232
vim.keymap.set("n", "q", ":tabclose<CR>", { buffer = true, silent = true })
3333
local bufname = vim.api.nvim_buf_get_name(0)
3434
if vim.startswith(bufname, "fugitive://") then
35-
vim.lsp.stop_client(vim.lsp.get_clients({ bufnr = vim.api.nvim_get_current_buf() }))
35+
for _, client in ipairs(vim.lsp.get_clients({ bufnr = vim.api.nvim_get_current_buf() })) do
36+
client:stop()
37+
end
3638
end
3739
end)
3840
end

0 commit comments

Comments
 (0)