aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/pony_lsp.lua
blob: 62727ba9d90c665c5f7d2f8b154898e4217db1d0 (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
---@brief
---
--- https://github.com/ponylang/ponyc/tree/main/tools/pony-lsp
---
--- Language server for the Pony programming language

--- default settings for pony-lsp
local function default_settings()
  ---@type table{ defines: string[], ponypath: string[] }
  return {
    defines = {},
    ponypath = {},
  }
end

---@type vim.lsp.Config
return {
  cmd = { 'pony-lsp' },
  filetypes = { 'pony' },
  root_markers = { 'corral.json', '.git' },
  settings = {
    ['pony-lsp'] = default_settings(),
  },
}