summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/teal_ls.lua
blob: b554addab5811ec5622e7235c4132b5d669375de (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
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = {
      'teal-language-server',
      -- use this to enable logging in /tmp/teal-language-server.log
      -- "logging=on",
    },
    filetypes = {
      'teal',
      -- "lua", -- Also works for lua, but you may get type errors that cannot be resolved within lua itself
    },
    root_dir = util.root_pattern('tlconfig.lua', '.git'),
  },
  docs = {
    description = [[
https://github.com/teal-language/teal-language-server

Install with:
```
luarocks install --dev teal-language-server
```
]],
    default_config = {
      root_dir = [[root_pattern("tlconfig.lua", ".git")]],
    },
  },
}