aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index c043edb..89034c2 100644
--- a/init.lua
+++ b/init.lua
@@ -97,8 +97,11 @@ end
-- clangd language server configuration
local clangd = {name = 'clangd', cmd = 'clangd'}
+-- pyls (python-language-server) language server configuration
+local pyls = {name = 'pyls', cmd = 'pyls'}
+
-- map of known language servers per syntax
-lspc.ls_map = {cpp = clangd, ansi_c = clangd}
+lspc.ls_map = {cpp = clangd, ansi_c = clangd, python = pyls}
-- return the name of the language server for this syntax
local function get_ls_name_for_syntax(syntax)