aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authoregi <82039+egi@users.noreply.github.com>2021-11-15 16:31:11 +0700
committerGitHub <noreply@github.com>2021-11-15 01:31:11 -0800
commit02e406535c9014dff402b47ff3898b0a4a269ce9 (patch)
tree6032779c45945add1680d96578751bdf6b86acf4 /lua
parentci: add Selene linter (#904) (diff)
downloadnvim-lspconfig-02e406535c9014dff402b47ff3898b0a4a269ce9.tar
nvim-lspconfig-02e406535c9014dff402b47ff3898b0a4a269ce9.tar.gz
nvim-lspconfig-02e406535c9014dff402b47ff3898b0a4a269ce9.tar.bz2
nvim-lspconfig-02e406535c9014dff402b47ff3898b0a4a269ce9.tar.lz
nvim-lspconfig-02e406535c9014dff402b47ff3898b0a4a269ce9.tar.xz
nvim-lspconfig-02e406535c9014dff402b47ff3898b0a4a269ce9.tar.zst
nvim-lspconfig-02e406535c9014dff402b47ff3898b0a4a269ce9.zip
feat: add robotframework-lsp support (#1357)
Co-authored-by: Peter Lithammer <peter.lithammer@gmail.com> Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com>
Diffstat (limited to '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)",
+ },
+ },
+}