nvim: lsp-utils: Drop preview flag & fix root files for ruff

This commit is contained in:
Sanchayan Maity 2024-09-09 15:33:56 +05:30
parent cb7cfdacfa
commit e3aa8c1dee
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -262,12 +262,12 @@ function M.ra_config()
end
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)
return {
name = "ruff",
cmd = { 'ruff', 'server', '--preview' },
cmd = { 'ruff', 'server' },
filetypes = { 'python' },
capabilities = default_capabilities,
root_dir = root_directory,