aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/ecsact.lua
blob: 26ff913efe28e757eeb5cb3116a54ff4ff80c51a (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
27
28
local util = require 'lspconfig.util'

local bin_name = 'ecsact_lsp_server'
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 = { 'ecsact' },
    root_dir = util.root_pattern '.git',
    single_file_support = true,
  },

  docs = {
    description = [[
https://github.com/ecsact-dev/ecsact_lsp_server

Language server for Ecsact.

The default cmd assumes `ecsact_lsp_server` is in your PATH. Typically from the
Ecsact SDK: https://ecsact.dev/start
]],
  },
}