aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillot Tony <tony.guillot@protonmail.com>2022-08-16 21:55:35 +0200
committerPeter Lithammer <peter.lithammer@gmail.com>2022-08-24 10:52:04 +0200
commitfb45ef185e7dec14de55c0fcc6aedc8b55554fe0 (patch)
tree3d5e50e98f90937adf61c6ae115975a80d1b5c50
parentfeat: add mlir-lsp-server support (diff)
downloadnvim-lspconfig-fb45ef185e7dec14de55c0fcc6aedc8b55554fe0.tar
nvim-lspconfig-fb45ef185e7dec14de55c0fcc6aedc8b55554fe0.tar.gz
nvim-lspconfig-fb45ef185e7dec14de55c0fcc6aedc8b55554fe0.tar.bz2
nvim-lspconfig-fb45ef185e7dec14de55c0fcc6aedc8b55554fe0.tar.lz
nvim-lspconfig-fb45ef185e7dec14de55c0fcc6aedc8b55554fe0.tar.xz
nvim-lspconfig-fb45ef185e7dec14de55c0fcc6aedc8b55554fe0.tar.zst
nvim-lspconfig-fb45ef185e7dec14de55c0fcc6aedc8b55554fe0.zip
feat: add mlir-pdll-lsp-server support
-rw-r--r--lua/lspconfig/server_configurations/mlir_pdll_lsp_server.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/mlir_pdll_lsp_server.lua b/lua/lspconfig/server_configurations/mlir_pdll_lsp_server.lua
new file mode 100644
index 00000000..e24d634f
--- /dev/null
+++ b/lua/lspconfig/server_configurations/mlir_pdll_lsp_server.lua
@@ -0,0 +1,20 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'mlir-pdll-lsp-server' },
+ filetypes = { 'pdll' },
+ root_dir = function(fname)
+ return util.root_pattern 'pdll_compile_commands.yml'(fname) or util.find_git_ancestor(fname)
+ end,
+ },
+ docs = {
+ description = [[
+https://mlir.llvm.org/docs/Tools/MLIRLSP/#pdll-lsp-language-server--mlir-pdll-lsp-server
+
+The Language Server for the LLVM PDLL language
+
+`mlir-pdll-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project)
+]],
+ },
+}