diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2020-07-14 11:30:40 -0700 |
|---|---|---|
| committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2020-07-14 13:42:08 -0700 |
| commit | 3170421b4c733cea426d7654f2f70400b68cd4fb (patch) | |
| tree | c94c343754965fc13b63c48ae0930c430db2cb75 /lua | |
| parent | Merge pull request #297 from kdheepak/kd/add-pr-template (diff) | |
| download | nvim-lspconfig-3170421b4c733cea426d7654f2f70400b68cd4fb.tar nvim-lspconfig-3170421b4c733cea426d7654f2f70400b68cd4fb.tar.gz nvim-lspconfig-3170421b4c733cea426d7654f2f70400b68cd4fb.tar.bz2 nvim-lspconfig-3170421b4c733cea426d7654f2f70400b68cd4fb.tar.lz nvim-lspconfig-3170421b4c733cea426d7654f2f70400b68cd4fb.tar.xz nvim-lspconfig-3170421b4c733cea426d7654f2f70400b68cd4fb.tar.zst nvim-lspconfig-3170421b4c733cea426d7654f2f70400b68cd4fb.zip | |
Add pyright languageserver
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim_lsp/pyright.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lua/nvim_lsp/pyright.lua b/lua/nvim_lsp/pyright.lua new file mode 100644 index 00000000..5a11ec6c --- /dev/null +++ b/lua/nvim_lsp/pyright.lua @@ -0,0 +1,32 @@ +local configs = require 'nvim_lsp/configs' +local util = require 'nvim_lsp/util' + +local server_name = "pyright" + +local installer = util.npm_installer { + server_name = server_name; + packages = {server_name}; + binaries = {server_name}; +} + +configs[server_name] = { + default_config = { + cmd = {"pyright-langserver", "--stdio"}; + filetypes = {"python"}; + root_dir = util.root_pattern(".git"); + }; + docs = { + description = [[ +https://github.com/microsoft/pyright + +`pyright`, a static type checker and language server for python +]]; + }; +} + +configs[server_name].install = installer.install +configs[server_name].install_info = installer.info + +-- configs[server_name].install = installer.install +-- configs[server_name].install_info = installer.info +-- vim:et ts=2 sw=2 |
