Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to include pylsp-mypy in the LSP config?#520

ubaldot started this conversation inConfiguration
Discussion options

I am using Vim9 LSP and I should tell it that I want to usepylsp-mypy, but I cannot understand how shall I do that. In my config I have the following, that I built according tothis guideline, but I don't know how to addpylsp-mypy

var pylsp_config = {    'pylsp': {        'plugins': {            'pycodestyle': {                'enabled': false},            'pyflakes': {                'enabled': true},            'pydocstyle': {                'enabled': false},            'autopep8': {                'enabled': false}, }, }, }
You must be logged in to vote

Replies: 1 comment

Comment options

I use Neovim instead of Vim9 so I'm not entirely sure, but going by the format of the rest of your config, wouldn't it just be something like

var pylsp_config= {'pylsp': {'plugins': {'pylsp_mypy': {'enabled': true},... }, }, }

?

Maybe this wasn't there when you originally asked the quesiton, but thepylsp-mypy README shows all config options prefixed withpylsp.plugins.pylsp_mypy., the first two parts matching the "upper layers" of your existing config example. Hence why it seems correct to me.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@ubaldot@smheidrich

[8]ページ先頭

©2009-2025 Movatter.jp