aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/antlersls.lua
blob: 28fa0d0cc0466834e410cd7d9d5d8cae16042c3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
```
]],
  },
}