aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/antlersls.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/antlersls.lua b/lua/lspconfig/server_configurations/antlersls.lua
new file mode 100644
index 00000000..28fa0d0c
--- /dev/null
+++ b/lua/lspconfig/server_configurations/antlersls.lua
@@ -0,0 +1,26 @@
+local util = require 'lspconfig.util'
+
+local bin_name = 'antlersls'
+local cmd = { bin_name, '--stdio' }
+
+if vim.fn.has 'win32' == 1 then
+ cmd = { 'cmd.exe', '/C', bin_name, '--stdio' }
+end
+
+return {
+ default_config = {
+ cmd = cmd,
+ filetypes = { 'html', 'antlers' },
+ root_dir = util.root_pattern 'composer.json',
+ },
+ docs = {
+ description = [[
+https://www.npmjs.com/package/antlers-language-server
+
+`antlersls` can be installed via `npm`:
+```sh
+npm install -g antlers-language-server
+```
+]],
+ },
+}