Remove custom ruff configuration
This commit is contained in:
parent
66cde494d8
commit
5c07f36862
1 changed files with 2 additions and 11 deletions
|
|
@ -53,19 +53,10 @@ end
|
||||||
local util = require('lspconfig/util')
|
local util = require('lspconfig/util')
|
||||||
|
|
||||||
{% if ansible_facts.os_family == 'Archlinux' %}
|
{% if ansible_facts.os_family == 'Archlinux' %}
|
||||||
local python_root_dir = function(fname)
|
|
||||||
return util.root_pattern('.git', 'setup.cfg', 'requirements')(fname) or
|
|
||||||
util.path.dirname(fname)
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.lsp.config['ruff'] = {
|
|
||||||
on_attach = on_attach,
|
|
||||||
capabilities = capabilities,
|
|
||||||
root_dir = python_root_dir
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
vim.lsp.config['pyright'] = {
|
vim.lsp.config['pyright'] = {
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = capabilities,
|
||||||
settings = {
|
settings = {
|
||||||
pyright = {
|
pyright = {
|
||||||
-- Using Ruff's import organizer
|
-- Using Ruff's import organizer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue