nvim: lsp-utils: Drop preview flag & fix root files for ruff
This commit is contained in:
parent
cb7cfdacfa
commit
e3aa8c1dee
1 changed files with 2 additions and 2 deletions
|
@ -262,12 +262,12 @@ function M.ra_config()
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.ruff_config()
|
function M.ruff_config()
|
||||||
local root_files = { 'pyproject.toml', 'setup.py', 'setup.cfg', 'requirements.txt', 'Pipfile' }
|
local root_files = { 'pyproject.toml', 'ruff.toml', '.ruff.toml' }
|
||||||
local root_directory = get_root_directory(root_files)
|
local root_directory = get_root_directory(root_files)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
name = "ruff",
|
name = "ruff",
|
||||||
cmd = { 'ruff', 'server', '--preview' },
|
cmd = { 'ruff', 'server' },
|
||||||
filetypes = { 'python' },
|
filetypes = { 'python' },
|
||||||
capabilities = default_capabilities,
|
capabilities = default_capabilities,
|
||||||
root_dir = root_directory,
|
root_dir = root_directory,
|
||||||
|
|
Loading…
Reference in a new issue