aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/pyls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/pyls.lua')
-rw-r--r--lua/lspconfig/pyls.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/lspconfig/pyls.lua b/lua/lspconfig/pyls.lua
new file mode 100644
index 00000000..fef0749d
--- /dev/null
+++ b/lua/lspconfig/pyls.lua
@@ -0,0 +1,23 @@
+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.
+ ]];
+ default_config = {
+ root_dir = "vim's starting directory";
+ };
+ };
+};
+-- vim:et ts=2 sw=2