1 parent ca9774a commit a726171Copy full SHA for a726171
1 file changed
lua/plugins/fugitive.lua
@@ -32,7 +32,7 @@ return {
32
vim.keymap.set("n", "q", ":tabclose<CR>", { buffer = true, silent = true })
33
local bufname = vim.api.nvim_buf_get_name(0)
34
if vim.startswith(bufname, "fugitive://") then
35
- vim.lsp.enable(false, { bufnr = vim.api.nvim_get_current_buf() })
+ vim.lsp.stop_client(vim.lsp.get_clients({ bufnr = vim.api.nvim_get_current_buf() }))
36
end
37
end)
38
0 commit comments