From 8e90351411d0312493c56d59058785d11b282145 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 1 Aug 2022 17:45:29 +0200 Subject: move server configurations into a seperate file --- init.lua | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 299620d..a6dd4c1 100644 --- a/init.lua +++ b/init.lua @@ -227,20 +227,8 @@ local function syntax_to_languageId(syntax) return syntax end --- clangd language server configuration -local clangd = {name = 'clangd', cmd = 'clangd'} - -- map of known language servers per syntax -lspc.ls_map = { - cpp = clangd, - ansi_c = clangd, - -- pylsp (python-lsp-server) language server configuration - -- https://github.com/python-lsp/python-lsp-server - python = {name = 'python-lsp-server', cmd = 'pylsp'}, - -- lua (lua-language-server) language server configuration - -- https://github.com/sumneko/lua-language-server - lua = {name = 'lua-language-server', cmd = 'lua-language-server'}, -} +lspc.ls_map = dofile(source_path .. 'supported-servers.lua') -- return the name of the language server for this syntax local function get_ls_name_for_syntax(syntax) -- cgit v1.2.3