1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 22:40:05 +08:00
SpaceVim/bundle/nvim-lspconfig-latest/lua/lspconfig/server_configurations/robotframework_ls.lua

22 lines
579 B
Lua
Raw Normal View History

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')(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)",
},
},
}