aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/robotframework_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/robotframework_ls.lua')
-rw-r--r--lua/lspconfig/robotframework_ls.lua24
1 files changed, 24 insertions, 0 deletions
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)",
+ },
+ },
+}