From 059eb01285bc3b26552581b1f00539a82b735a25 Mon Sep 17 00:00:00 2001 From: Gonzalo Larumbe Date: Wed, 20 Dec 2023 17:43:30 +0100 Subject: [PATCH] Update Emacs config section of language server README.md --- verilog/tools/ls/README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/verilog/tools/ls/README.md b/verilog/tools/ls/README.md index bd626d476..373b6da35 100644 --- a/verilog/tools/ls/README.md +++ b/verilog/tools/ls/README.md @@ -116,7 +116,7 @@ packages. Here is a simple setup: put this in your `~/.emacs` file and make sure the binary is in your `$PATH` (or use full path). -```lisp +```elisp (require 'lsp-mode) (add-to-list 'lsp-language-id-configuration '(verilog-mode . "verilog")) (lsp-register-client @@ -127,6 +127,15 @@ and make sure the binary is in your `$PATH` (or use full path). (add-hook 'verilog-mode-hook 'lsp) ``` +It is also possible to automatically configure `eglot` and `lsp-mode` using +the [verilog-ext](https://github.com/gmlarumbe/verilog-ext.git) package: +```elisp +(require 'verilog-ext) +(verilog-ext-mode-setup) +(verilog-ext-eglot-set-server 've-verible-ls) ;`eglot' config +(verilog-ext-lsp-set-server 've-verible-ls) ; `lsp' config +``` + ### Kakoune First, go to [kak-lsp](https://github.com/kak-lsp/kak-lsp) project and follow the installation and configuration steps.