fix ruff/Ruff duplication
This commit is contained in:
parent
0685135ccf
commit
b56d703662
5 changed files with 50 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue