aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/robotframework_ls.lua
blob: b55d9fcbfa9175aba30a46ac39a284665e9cb7ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'

local server_name = 'robotframework_ls'

configs[server_name] = {
  default_config = {
    cmd = { 'robotframework_ls' },
    filetypes = { 'robot' },
    root_dir = function(fname)
      return util.root_pattern('robotidy.toml', 'pyproject.toml')(fname) or util.find_git_ancestor(fname)
    end,
  },
  docs = {
    description = [[
https://github.com/robocorp/robotframework-lsp

Language Server Protocol implementation for Robot Framework.
]],
    default_config = {
      root_dir = "util.root_pattern('robotidy.toml', 'pyproject.toml')(fname) or util.find_git_ancestor(fname)",
    },
  },
}