We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ruff-lsp global and workspace config is weird. instead of using: for workspace config:
"ruff-lsp": { "workspace_config": { ... } }
it chooses to use:
"ruff-lsp": { "initialization_options": { "globalSettings": { ... }, "settings": { ... } } }
i.e. workspace_config becomes initialization_options.settings or initialization_options.globalSettings
workspace_config
initialization_options.settings
initialization_options.globalSettings
Just mentioning this here for future confused users.
Thanks!
The text was updated successfully, but these errors were encountered:
Thank you for sharing this was confusing me too! Can you share how to configure a setting this way?
I'm trying this and getting no change (the pyright config is helpfully demonstrated in the setup script)
let g:lsp_settings_filetype_python = ['ruff-lsp', 'pyright-langserver'] " Configure the Pyright and Python LSP servers let g:lsp_settings = { \ 'ruff-lsp': { \ 'disabled': v:false, \ 'initialization_options': { \ "globalSettings": { \ 'python': { \ 'format': { \ 'args': ['--unsafe-fixes'] \ } \ } \ } \ } \ }, \ 'pyright-langserver': { \ 'disabled': v:false, \ 'workspace_config': { \ 'python': { \ 'analysis': { \ 'useLibraryCodeForTypes': v:true, \ } \ } \ } \ },
Sorry, something went wrong.
No branches or pull requests
ruff-lsp global and workspace config is weird. instead of using:
for workspace config:
it chooses to use:
i.e.
workspace_config
becomesinitialization_options.settings
orinitialization_options.globalSettings
Just mentioning this here for future confused users.
Thanks!
The text was updated successfully, but these errors were encountered: