From 02e406535c9014dff402b47ff3898b0a4a269ce9 Mon Sep 17 00:00:00 2001 From: egi <82039+egi@users.noreply.github.com> Date: Mon, 15 Nov 2021 16:31:11 +0700 Subject: feat: add robotframework-lsp support (#1357) Co-authored-by: Peter Lithammer Co-authored-by: Michael Lingelbach --- lua/lspconfig/robotframework_ls.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lua/lspconfig/robotframework_ls.lua (limited to 'lua/lspconfig/robotframework_ls.lua') diff --git a/lua/lspconfig/robotframework_ls.lua b/lua/lspconfig/robotframework_ls.lua new file mode 100644 index 00000000..b55d9fcb --- /dev/null +++ b/lua/lspconfig/robotframework_ls.lua @@ -0,0 +1,24 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +local server_name = 'robotframework_ls' + +configs[server_name] = { + default_config = { + cmd = { 'robotframework_ls' }, + filetypes = { 'robot' }, + root_dir = function(fname) + return util.root_pattern('robotidy.toml', 'pyproject.toml')(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')(fname) or util.find_git_ancestor(fname)", + }, + }, +} -- cgit v1.2.3-70-g09d2