blob: a01b98826deccd646d2028fa7f305d2a6945316b (
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 path = require("nvim-lsp-installer.path")
local npm = require("nvim-lsp-installer.installers.npm")
local root_dir = server.get_server_root_path("python")
return server.Server:new {
name = "pyright",
root_dir = root_dir,
install_cmd = npm.packages { "pyright" },
default_options = {
cmd = { path.concat { root_dir, "node_modules", ".bin", "pyright-langserver" }, "--stdio" },
on_attach = server.common_on_attach,
},
}
|