mattn / vim-lsp-settings

Auto configurations for Language Server for vim-lsp
MIT License
1.29k stars 231 forks source link

How to set lsp_settings_filetype_ with LspSettingsLocalEdit #697

Open yash-fn opened 1 year ago

yash-fn commented 1 year ago

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.