[Mlir-commits] [mlir] [Documentation] Add neovim documentation for lsp servers (PR #154896)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Aug 21 23:05:44 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Jasmine Tang (badumbatish)

<details>
<summary>Changes</summary>

Hi there, I'm using neovim and i've been trying to set up these LSP servers through neovim but haven't found much documentation for this.

This PR adds preliminary document to help guide neovim on how to integrate these LSPs to neovim.

I can also add more documentation as well as provide screenshot of usable examples for the PR if needed.

Reviews, feedbacks, and extra perspective welcome. 

---
Full diff: https://github.com/llvm/llvm-project/pull/154896.diff


1 Files Affected:

- (modified) mlir/docs/Tools/MLIRLSP.md (+19) 


``````````diff
diff --git a/mlir/docs/Tools/MLIRLSP.md b/mlir/docs/Tools/MLIRLSP.md
index 8270f922fffe8..585b664f2c42c 100644
--- a/mlir/docs/Tools/MLIRLSP.md
+++ b/mlir/docs/Tools/MLIRLSP.md
@@ -389,6 +389,25 @@ LSP Language plugins are available for many popular editors, and in principle
 the language servers provided by MLIR should work with any of them, though
 feature sets and interfaces may vary. Below are a set of plugins that are known
 to work:
+### Neovim
+
+#### Setup
+Neovim supports integration of all three language servers through its built-in LSP client, which requires
+hooking up to third party servers.
+
+The quick start guide on its [LSP help page](https://neovim.io/doc/user/lsp.html) details how to set up
+a generic LSP config.
+
+For the most up-to-date configs of all three language server, visit the 
+[lsp directory](https://github.com/neovim/nvim-lspconfig/tree/master/lsp) of nvim-lspconfig, copy and paste the config of 
+choice to your local neovim config of the LSP. The file names of the servers' config are:
+
+- `mlir_lsp_server.lua`: for the MLIR LSP Language Server
+- `mlir_pdll_lsp_server.lua`: for the PDLL LSP Language Server
+- `tblgen_lsp_server.lua`: for the TableGen LSP Language Server
+
+Features such as find definitions, find references, hover, live diagnostics and verifiers are well supported. 
+For extra information, please refer to each LSP's dedicated's section.
 
 ### Visual Studio Code
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/154896


More information about the Mlir-commits mailing list