diff options
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/robotframework_ls.lua')
-rw-r--r-- | start/lspconfig-0.1.8/lua/lspconfig/server_configurations/robotframework_ls.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/robotframework_ls.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/robotframework_ls.lua new file mode 100644 index 0000000..d1c25f5 --- /dev/null +++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/robotframework_ls.lua @@ -0,0 +1,23 @@ +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)', + }, + }, +} |