aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/lelwel_ls.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/lua/lspconfig/lelwel_ls.lua b/lua/lspconfig/lelwel_ls.lua
new file mode 100644
index 00000000..fe8db069
--- /dev/null
+++ b/lua/lspconfig/lelwel_ls.lua
@@ -0,0 +1,22 @@
+local configs = require 'lspconfig/configs'
+local util = require 'lspconfig/util'
+
+configs.lelwel_ls = {
+ default_config = {
+ cmd = { 'lelwel-ls' },
+ filetypes = { 'llw' },
+ root_dir = util.find_git_ancestor,
+ },
+ docs = {
+ description = [[
+https://github.com/0x2a-42/lelwel
+
+Language server for lelwel grammars.
+
+You can install `lelwel-ls` via cargo:
+```sh
+cargo install --features="lsp" lelwel
+```
+]],
+ },
+}