update ruff settings

This commit is contained in:
2026-08-27 21:09:45 -07:00
parent 2a6b5b093c
commit 1e50ecb4f1
2 changed files with 19 additions and 4 deletions
+15
View File
@@ -165,6 +165,21 @@ return {
},
})
vim.api.nvim_create_autocmd("LspAttach", {
group = vim.api.nvim_create_augroup('lsp_attach_disable_ruff_hover', { clear = true }),
callback = function(args)
local client = vim.lsp.get_client_by_id(args.data.client_id)
if client == nil then
return
end
if client.name == 'ruff' then
-- Disable hover in favor of Pyright
client.server_capabilities.hoverProvider = false
end
end,
desc = 'LSP: Disable hover capability from Ruff',
})
vim.lsp.config("clangd", {
cmd = {
"clangd",