aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/pylsp/init.lua
blob: e3da8e21aadee1267a8cf08d12c1ef9d8b48807b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
local server = require "nvim-lsp-installer.server"
local pip3 = require "nvim-lsp-installer.installers.pip3"

return function(name, root_dir)
    return server.Server:new {
        name = name,
        root_dir = root_dir,
        languages = { "python" },
        homepage = "https://github.com/python-lsp/python-lsp-server",
        installer = pip3.packages { "python-lsp-server[all]" },
        default_options = {
            cmd = { pip3.executable(root_dir, "pylsp") },
        },
    }
end