Skip to content
New issue

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

How to set lsp_settings_filetype_ with LspSettingsLocalEdit #697

Open
yash-fn opened this issue Sep 4, 2023 · 0 comments
Open

How to set lsp_settings_filetype_ with LspSettingsLocalEdit #697

yash-fn opened this issue Sep 4, 2023 · 0 comments

Comments

@yash-fn
Copy link

yash-fn commented Sep 4, 2023

For some projects I like to use pylsp because it is comprehensive, but for large projects I have to use combination of jedi + ruff for performance reasons (pylsp hangs entire vim on every keypress). Currently have to "toggle" i.e. repeatedly comment out and in line like following from my .vimrc:

let g:lsp_settings_filetype_python = ["ruff-lsp", "jedi-language-server"]

Is there any way I can use LspSettingsLocalEdit to create a project directory vim-lsp-settings config file where for certain project configured as such I can use two language servers simultaneously but otherwise by default standard behavior of just pylsp is fine?

The local config can currently be set to manually disable everything except
one server with the disabled option, but I cannot figure out how to run two
separate servers simultaneosly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant