irongit

My nvim configuration

hygo-nvim/lsp/pylsp.lua.off
41 lines1.1 KB
1---@brief
2---
3--- https://github.com/python-lsp/python-lsp-server
4---
5--- A Python 3.6+ implementation of the Language Server Protocol.
6---
7--- See the [project's README](https://github.com/python-lsp/python-lsp-server) for installation instructions.
8---
9--- Configuration options are documented [here](https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md).
10--- In order to configure an option, it must be translated to a nested Lua table and included in the `settings` argument to the `config('pylsp', {})` function.
11--- For example, in order to set the `pylsp.plugins.pycodestyle.ignore` option:
12--- ```lua
13--- vim.lsp.config('pylsp', {
14--- settings = {
15--- pylsp = {
16--- plugins = {
17--- pycodestyle = {
18--- ignore = {'W391'},
19--- maxLineLength = 100
20--- }
21--- }
22--- }
23--- }
24--- })
25--- ```
26---
27--- Note: This is a community fork of `pyls`.
28
29---@type vim.lsp.Config
30return {
31 cmd = { "pylsp" },
32 filetypes = { "python" },
33 root_markers = {
34 "pyproject.toml",
35 "setup.py",
36 "setup.cfg",
37 "requirements.txt",
38 "Pipfile",
39 ".git",
40 },
41}