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

Improve server configuration documentation #1880

Closed
gerazov opened this issue May 2, 2022 · 1 comment
Closed

Improve server configuration documentation #1880

gerazov opened this issue May 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@gerazov
Copy link

gerazov commented May 2, 2022

Language server

pylsp

Requested feature

It took me while to figure out how to enable disable plugins in the pylsp server. One thing I don't find very useful is the McCabe complexity check. Finally I got it working via the lspconfig setup function using:

require('lspconfig').pylsp.setup {
  on_attach = on_attach,
  flags = {
    -- This will be the default in neovim 0.7+
    debounce_text_changes = 150,
  },
  settings = {
    pylsp = {
      plugins = {
        -- pylint = { enabled = true },
        mccabe = { enabled = false }
      }
    }
  }
}

This might be server specific, but it would be nice to have this in the documentation to make it easier for people to find and tweak their server settings. I found these listed via :LspInstallInfo from williamboman/nvim-lsp-installer.

image

Other clients which have this feature

No response

@justinmk
Copy link
Member

justinmk commented May 2, 2022

There is a huge amount of docs in this repo. Check carefully.

If there is a specific tweak to those docs needed, send a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants