Skip to content

Commit

Permalink
Merge pull request #2061 from gmlarumbe/master
Browse files Browse the repository at this point in the history
Update Emacs config section of language server README.md
  • Loading branch information
hzeller authored Dec 21, 2023
2 parents e76f7fc + 059eb01 commit b2f7d66
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion verilog/tools/ls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit b2f7d66

Please sign in to comment.