Skip to content

Commit

Permalink
feat: add robotcode support (#3431)
Browse files Browse the repository at this point in the history
  • Loading branch information
TendonT52 authored Nov 12, 2024
1 parent 4cb925e commit 561cafd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lua/lspconfig/configs/robotcode.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
local util = require 'lspconfig.util'

return {
default_config = {
cmd = { 'robotcode', 'language-server' },
filetypes = { 'robot', 'resource' },
root_dir = util.root_pattern('robot.toml', 'pyproject.toml', 'Pipfile', '.git'),
single_file_support = true,
get_language_id = function(_, _)
return 'robotframework'
end,
},
docs = {
description = [[
https://robotcode.io
RobotCode - Language Server Protocol implementation for Robot Framework.
]],
default_config = {
root_dir = "util.root_pattern('robot.toml', 'pyproject.toml', 'Pipfile')(fname) or util.find_git_ancestor(fname)",
settings = {},
},
},
}

0 comments on commit 561cafd

Please sign in to comment.