diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2022-08-01 17:45:29 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2022-08-01 17:47:59 +0200 |
| commit | 8e90351411d0312493c56d59058785d11b282145 (patch) | |
| tree | b3d52a87ec9ee4a789abd3c983ec1b741283a00c /init.lua | |
| parent | 5b933613cc741026263825e8ae79876d19643239 (diff) | |
| download | vis-lspc-8e90351411d0312493c56d59058785d11b282145.tar.gz vis-lspc-8e90351411d0312493c56d59058785d11b282145.zip | |
move server configurations into a seperate file
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -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) |
