From ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de Mon Sep 17 00:00:00 2001 From: Hirokazu Hata Date: Sun, 6 Sep 2020 17:49:21 +0900 Subject: Rename nvim_lsp to lspconfig --- lua/lspconfig/pyls.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lua/lspconfig/pyls.lua (limited to 'lua/lspconfig/pyls.lua') 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 -- cgit v1.2.3-70-g09d2