Compare commits
No commits in common. "17c2921c0599f315632c8a8ac938f555636390e6" and "b833b5bb3482cbac149a2c50d463f09dc173a559" have entirely different histories.
17c2921c05
...
b833b5bb34
@ -61,7 +61,6 @@
|
||||
lua-language-server
|
||||
clang-tools
|
||||
zls
|
||||
ruff
|
||||
];
|
||||
home.sessionVariables.EDITOR = "nvim";
|
||||
}
|
||||
|
@ -127,39 +127,7 @@ lspconfig.rust_analyzer.setup {
|
||||
}
|
||||
|
||||
-- LSP: python
|
||||
-- Ruff server
|
||||
lspconfig.ruff.setup({
|
||||
})
|
||||
|
||||
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',
|
||||
})
|
||||
|
||||
-- Pyright
|
||||
lspconfig.pyright.setup {
|
||||
settings = {
|
||||
pyright = {
|
||||
-- Using Ruff's import organizer
|
||||
disableOrganizeImports = true,
|
||||
},
|
||||
python = {
|
||||
analysis = {
|
||||
-- Ignore all files for analysis to exclusively use Ruff for linting
|
||||
ignore = { '*' },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
-- LSP: C/C++
|
||||
|
Loading…
Reference in New Issue
Block a user