fix ruff/Ruff duplication

This commit is contained in:
Ray Elliott 2025-12-07 23:48:11 +00:00
commit b56d703662
5 changed files with 50 additions and 8 deletions

View file

@ -7,6 +7,16 @@ return {
config = function()
local capabilities = require("cmp_nvim_lsp").default_capabilities()
-- Disable ruff LSP entirely (we use ruff via nvim-lint + none-ls instead)
vim.api.nvim_create_autocmd("LspAttach", {
callback = function(args)
local client = vim.lsp.get_client_by_id(args.data.client_id)
if client and client.name == "ruff" then
vim.lsp.stop_client(client.id)
end
end,
})
-- Load project-local LSP settings from .nvim.lua
local function load_project_lsp_settings(server_name, root_dir)
if not root_dir then