aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/c3_lsp.lua
blob: e1d84aa4f708e98dc94113aa7c3798abfa57b9f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'c3lsp' },
    root_dir = function(fname)
      return util.root_patttern { 'project.json', 'manifest.json', '.git' }(fname)
    end,
    filetypes = { 'c3', 'c3i' },
  },
  docs = {
    description = [[
https://github.com/pherrymason/c3-lsp

Language Server for c3.
]],
  },
}