1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 07:20:05 +08:00
SpaceVim/bundle/nvim-lspconfig-0.1.4/lua/lspconfig/server_configurations/tblgen_lsp_server.lua
2023-03-29 11:59:27 +08:00

21 lines
577 B
Lua

local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'tblgen-lsp-server' },
filetypes = { 'tablegen' },
root_dir = function(fname)
return util.root_pattern 'tablegen_compile_commands.yml'(fname) or util.find_git_ancestor(fname)
end,
},
docs = {
description = [[
https://mlir.llvm.org/docs/Tools/MLIRLSP/#tablegen-lsp-language-server--tblgen-lsp-server
The Language Server for the LLVM TableGen language
`tblgen-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project)
]],
},
}