[all-commits] [llvm/llvm-project] 435a17: [mlir] Add the Emacs support for MLIR's LSP server

Mehdi Amini via All-commits all-commits at lists.llvm.org
Tue Apr 5 11:11:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 435a176db9cf7fe13f0f4e6d444a531622b90c9f
      https://github.com/llvm/llvm-project/commit/435a176db9cf7fe13f0f4e6d444a531622b90c9f
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2022-04-05 (Tue, 05 Apr 2022)

  Changed paths:
    A mlir/utils/emacs/mlir-lsp-client.el

  Log Message:
  -----------
  [mlir] Add the Emacs support for MLIR's LSP server

In order to use the MLIR LSP server in Emacs, first the `mlir-lsp-client.el`
has to be loaded via elisp and then, one should call `lsp-mlir-setup` function
to setup the LSP client. After that simply calling the `lsp` function while
the `mlir-mode` is active with result in finding the language server (default
to `mlir-lsp-server`) via the `lsp-mlir-server-executable` customization variable
and connecting to it by the LSP library. Users who use MLIR's language server
library to create their own server can simply set the variable `lsp-mlir-server-executable`
to point to their own implementation executable.

Reviewed By: tschuett

Differential Revision: https://reviews.llvm.org/D123002




More information about the All-commits mailing list