@@ -19,8 +19,8 @@ compilation order, interpreting some compilers messages and providing some
19
19
20
20
* [ Installation] ( #installation )
21
21
* [ Editor support] ( #editor-support )
22
- * [ Vim/NeoVim] ( #vimneovim )
23
22
* [ VS Code] ( #vs-code )
23
+ * [ Vim/NeoVim] ( #vimneovim )
24
24
* [ Usage] ( #usage )
25
25
* [ Third-party tools] ( #third-party-tools )
26
26
* [ Configuring HDL Checker] ( #configuring-HDL-Checker )
@@ -48,19 +48,22 @@ pip install hdl-checker --user --upgrade
48
48
49
49
## Editor support
50
50
51
+ ### VS Code
52
+
53
+ Install the [ HDL Checker VSCode client] [ hdl_checker_vscode ] on VS Code.
54
+
51
55
### Vim/NeoVim
52
56
53
57
#### Using [ dense-analysis/ale] [ ALE ]
54
58
55
- See (PR [ #2804 ] [ ALE_PR ] ), once it gets merged, ALE should support HDL Checker out of the
56
- box.
59
+ See (PR [ #2804 ] [ ALE_PR ] ), once it gets merged, ALE should support HDL Checker out
60
+ of the box.
57
61
58
- #### Usgin [ coc.nvim] [ coc_nvim ]
62
+ #### Using [ coc.nvim] [ coc_nvim ]
59
63
60
64
Following [ coc.nvim custom language server setup] [ coc_nvim_register_lsp ] , add
61
65
this to your [ coc.nvim configuration file] [ coc_nvim_config_file ] :
62
66
63
-
64
67
``` json
65
68
{
66
69
"languageserver" : {
@@ -79,9 +82,19 @@ this to your [coc.nvim configuration file][coc_nvim_config_file]:
79
82
}
80
83
```
81
84
82
- ### VS Code
85
+ #### Using [ autozimu/LanguageClient-neovim ] [ lc_nvim ]
83
86
84
- Install the [ HDL Checker VSCode client] [ hdl_checker_vscode ] on VS Code.
87
+ Add HDL Checker to the server commands:
88
+
89
+ ``` viml
90
+ let g:LanguageClient_serverCommands = {
91
+ \ 'vhdl': ['hdl_checker', '--lsp'],
92
+ \ 'verilog': ['hdl_checker', '--lsp'],
93
+ \ 'systemverilog': ['hdl_checker', '--lsp'],
94
+ \}
95
+ ```
96
+
97
+ Please note that this will start one server per language
85
98
86
99
## Usage
87
100
@@ -138,8 +151,8 @@ in LSP mode:
138
151
hdl_checker --lsp
139
152
` ` `
140
153
141
- On a Linux system, log file will be at ` /tmp/hdl_checker_log_pid< PID_NUMBER> .log` and
142
- ` /tmp/hdl_checker_stderr_pid< PID_NUMBER> .log` .
154
+ On a Linux system, log file will be at ` /tmp/hdl_checker_log_pid< PID_NUMBER> .log`
155
+ and ` /tmp/hdl_checker_stderr_pid< PID_NUMBER> .log` .
143
156
144
157
As a language server, HDL Checker will provide
145
158
@@ -157,9 +170,9 @@ HDL Checker can be used in HTTP server mode also:
157
170
hdl_checker
158
171
` ` `
159
172
160
- * Please note that this mode ** does not use LSP to communicate** . Request/response
161
- API is not yet available, but a reference implementation can be found in
162
- [vim-hdl][vim-hdl]*
173
+ * Please note that this mode ** does not use LSP over http to communicate** .
174
+ Request/response API is not yet available and is going to be deprecated in the
175
+ future. A reference implementation can be found in [vim-hdl][vim-hdl]*
163
176
164
177
# # Testing
165
178
@@ -240,6 +253,7 @@ trademarks mentioned or used by this software.
240
253
[hdl_checker_wiki_setup]: https://github.com/suoto/hdl_checker/wiki/Setting-up-a-project
241
254
[Intel_msim]: https://www.intel.com/content/www/us/en/software/programmable/quartus-prime/model-sim.html
242
255
[issue_tracker]: https://github.com/suoto/hdl_checker/issues
256
+ [lc_nvim]: https://github.com/autozimu/LanguageClient-neovim
243
257
[LSP]: https://en.wikipedia.org/wiki/Language_Server_Protocol
244
258
[Mentor_msim]: http://www.mentor.com/products/fv/modelsim/
245
259
[vim-hdl]: https://github.com/suoto/vim-hdl/
0 commit comments