Skip to content

pylsp configuration #80

Answered by VonHeikemen
nabiu256 asked this question in Q&A
Dec 21, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I tried to look for examples and found this old post. Translated the options to lsp-zero.

local lsp = require('lsp-zero')
lsp.preset('recommended')

lsp.configure('pylsp', {
  settings = {
    pylsp = {
      configurationSources = {'flake8'},
      plugins = {
        pycodestyle = {enabled = false},
        flake8 = {
          enabled = true,
          ignore = {},
        }
      }
    }
  }
})

lsp.setup()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nabiu256
Comment options

Answer selected by nabiu256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants