aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2021-12-28 02:03:20 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2021-12-28 13:33:01 +0100
commit03d7ebe23246e9f70fd11f21dae0ee259b678694 (patch)
treeca954d550d5317fd35244c8bf28c07b472780906
parentfbb4437da34337ef7aeea1370b81b5328d0747dd (diff)
downloadvis-lspc-03d7ebe23246e9f70fd11f21dae0ee259b678694.tar.gz
vis-lspc-03d7ebe23246e9f70fd11f21dae0ee259b678694.zip
add Lua LSP server configuration
-rw-r--r--init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index e2dc90e..5fb64df 100644
--- a/init.lua
+++ b/init.lua
@@ -195,8 +195,12 @@ local clangd = {name = 'clangd', cmd = 'clangd'}
-- https://github.com/python-lsp/python-lsp-server
local pyls = {name = 'python-lsp-sever', cmd = 'pylsp'}
+-- lua (lua-language-server) language server configuration
+-- https://github.com/sumneko/lua-language-server
+local luals = {name = 'lua-language-server', cmd = 'lua-language-server'}
+
-- map of known language servers per syntax
-lspc.ls_map = {cpp = clangd, ansi_c = clangd, python = pyls}
+lspc.ls_map = {cpp = clangd, ansi_c = clangd, python = pyls, lua = luals}
-- return the name of the language server for this syntax
local function get_ls_name_for_syntax(syntax)