summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/uiua.lua
blob: b102f8c37ab7c71cdcbd5f35b9dfe15cca8bc30f (plain)
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
29
30
31
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'uiua', 'lsp' },
    filetypes = { 'uiua' },
    root_dir = function(fname)
      return util.root_pattern('main.ua', '.fmt.ua')(fname) or util.find_git_ancestor(fname)
    end,
  },
  docs = {
    description = [[
https://github.com/uiua-lang/uiua/

The builtin language server of the Uiua interpreter.

The Uiua interpreter can be installed with `cargo install uiua`
]],
    default_config = {
      cmd = { 'uiua', 'lsp' },
      filetypes = { 'uiua' },
      root_dir = [[
        root_pattern(
          'main.ua',
          'fmt.ua',
          '.git'
        )
      ]],
    },
  },
}