blob: 7e78a342c7b9a8b6d00ebc106e18d1cbb0694abe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---@brief
---
--- https://robotcode.io
---
--- RobotCode - Language Server Protocol implementation for Robot Framework.
local venv = os.getenv('VIRTUAL_ENV')
---@type vim.lsp.Config
return {
cmd = { 'robotcode', 'language-server' },
filetypes = { 'robot', 'resource' },
root_markers = { 'robot.toml', 'pyproject.toml', 'Pipfile', '.git' },
cmd_env = venv and { PYTHONPATH = string.gsub(vim.fn.glob(venv .. '/lib/python*/site-packages'), '\n', ':') } or nil,
get_language_id = function(_, _)
return 'robotframework'
end,
}
|