aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/robotcode.lua
blob: 79f3337b5cac941cb329544d1db4846d649efb93 (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 util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'robotcode', 'language-server' },
    filetypes = { 'robot', 'resource' },
    root_dir = util.root_pattern('robot.toml', 'pyproject.toml', 'Pipfile', '.git'),
    single_file_support = true,
    get_language_id = function(_, _)
      return 'robotframework'
    end,
  },
  docs = {
    description = [[
https://robotcode.io

RobotCode - Language Server Protocol implementation for Robot Framework.
]],
    default_config = {
      root_dir = "util.root_pattern('robot.toml', 'pyproject.toml', 'Pipfile')(fname) or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])",
      settings = {},
    },
  },
}