aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/installers/python-ls.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-04-04 02:18:34 +0200
committerWilliam Boman <william@redwill.se>2021-04-04 17:30:31 +0200
commit5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39 (patch)
tree340635deeb85cd292e5cb87ad1077a44d3556190 /lua/nvim-lsp-installer/installers/python-ls.lua
downloadmason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.tar
mason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.tar.gz
mason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.tar.bz2
mason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.tar.lz
mason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.tar.xz
mason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.tar.zst
mason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.zip
init
Diffstat (limited to 'lua/nvim-lsp-installer/installers/python-ls.lua')
-rw-r--r--lua/nvim-lsp-installer/installers/python-ls.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/installers/python-ls.lua b/lua/nvim-lsp-installer/installers/python-ls.lua
new file mode 100644
index 00000000..3de489d0
--- /dev/null
+++ b/lua/nvim-lsp-installer/installers/python-ls.lua
@@ -0,0 +1,15 @@
+local installer = require('nvim-lsp-installer.installer')
+local capabilities = require('nvim-lsp-installer.capabilities')
+
+local root_dir = installer.get_server_root_path('python')
+
+return installer.create_lsp_config_installer {
+ name = "pyright",
+ root_dir = root_dir,
+ install_cmd = [[npm install pyright]],
+ default_options = {
+ cmd = { root_dir .. '/node_modules/.bin/pyright-langserver', '--stdio' },
+ capabilities = capabilities.create(),
+ on_attach = installer.common_on_attach,
+ },
+}