mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 14:40:04 +08:00
1c4627c212
ref: 9bda20fb96
24 lines
660 B
Lua
24 lines
660 B
Lua
local util = require 'lspconfig.util'
|
|
|
|
return {
|
|
default_config = {
|
|
cmd = { 'robotframework_ls' },
|
|
filetypes = { 'robot' },
|
|
root_dir = function(fname)
|
|
return util.root_pattern('robotidy.toml', 'pyproject.toml', 'conda.yaml', 'robot.yaml')(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', 'conda.yaml', 'robot.yaml')(fname)"
|
|
.. '\n or util.find_git_ancestor(fname)',
|
|
},
|
|
},
|
|
}
|