diff options
Diffstat (limited to 'lua/lspconfig/configs/robotcode.lua')
| -rw-r--r-- | lua/lspconfig/configs/robotcode.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/robotcode.lua b/lua/lspconfig/configs/robotcode.lua new file mode 100644 index 00000000..95dc86e2 --- /dev/null +++ b/lua/lspconfig/configs/robotcode.lua @@ -0,0 +1,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 util.find_git_ancestor(fname)", + settings = {}, + }, + }, +} |
