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

return {
  default_config = {
    cmd = { 'thriftls' },
    filetypes = { 'thrift' },
    root_dir = util.root_pattern '.thrift',
    single_file_support = true,
  },
  docs = {
    description = [[
https://github.com/joyme123/thrift-ls

you can install thriftls by mason or download binary here: https://github.com/joyme123/thrift-ls/releases
]],
    default_config = {
      root_dir = [[root_pattern(".thrift")]],
    },
  },
}