-
-
Notifications
You must be signed in to change notification settings - Fork 7
Language Server Protocol
Gonzalo Larumbe edited this page Feb 20, 2023
·
7 revisions
- Make sure that Language Server binary you are using is in the $PATH:
$ which svlangserver /usr/local/bin/svlangserver
- Configure
verilog-ext
to connect to that server:- Interactively:
- For
lsp-mode
: M-xverilog-ext-lsp-set-server
RETve-svlangserver
- For
eglot
: M-xverilog-ext-eglot-set-server
RETve-svlangserver
- For
- Programatically:
;; For `lsp-mode': (verilog-ext-lsp-set-server 've-svlangserver) ;; For `eglot': (verilog-ext-eglot-set-server 've-svlangserver)
- Interactively:
Depending on the Language Server you are using different configuration methods exist, such as YAML, JSON or TOML files placed at the workspace root. To know how to configure each Language Server refer to their respective documentation.
Configuration of svlangserver
can be done exclusive through Emacs customization.
lsp-mode
provides the variables lsp-clients-svlangserver-*
used both by lsp-mode
and by eglot
.
In addition, some functions are defined to execute server commands to build the index and extract the hierarchy:
- Provided by
lsp-mode
:lsp-clients-svlangserver-build-index
lsp-clients-svlangserver-report-hierarchy
- Provided by
eglot
andverilog-ext
:verilog-ext-eglot-svlangserver-build-index
verilog-ext-eglot-svlangserver-report-hierarchy