aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/pyls.lua
blob: 3523b4e75dbdcfbe19e74f0480d8e589a61fa7ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
local configs = require 'lspconfig/configs'

configs.pyls = {
  default_config = {
    cmd = { 'pyls' },
    filetypes = { 'python' },
    root_dir = function(fname)
      return vim.fn.getcwd()
    end,
  },
  docs = {
    package_json = 'https://raw.githubusercontent.com/palantir/python-language-server/develop/vscode-client/package.json',
    description = [[
https://github.com/palantir/python-language-server

`python-language-server`, a language server for Python.

The language server can be installed via `pipx install 'python-language-server[all]'`.

    ]],
    default_config = {
      root_dir = "vim's starting directory",
    },
  },
}
-- vim:et ts=2 sw=2