summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/roc_ls.lua
blob: 6737736ad2d575ee896d4c67f0d5687407bbb9c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'roc_language_server' },
    filetypes = { 'roc' },
    root_dir = util.find_git_ancestor,
    single_file_support = true,
  },
  docs = {
    description = [[
https://github.com/roc-lang/roc/tree/main/crates/language_server#roc_language_server

The built-in language server for the Roc programming language.
[Installation](https://github.com/roc-lang/roc/tree/main/crates/language_server#installing)
]],
    default_config = {
      root_dir = [[util.find_git_ancestor]],
    },
  },
}