mattn / mattn/vim-lsp-settings

How to set lsp_settings_filetype_ with LspSettingsLocalEdit

Open
#697 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
1.4k
Forks
245
Avg merge
3m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the implementation of LspSettingsLocalEdit and the local configuration handling, especially how the disabled option is applied. Compare that behavior with g:lsp_settings_filetype_python and the .vimrc example; done means a project-local configuration can enable both ruff-lsp and jedi-language-server while other projects retain pylsp by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, vim
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.