Skip to content

Commit 94d92af

Browse files
authored
Updating editor support
ALE supports HDL Checker out of the box; added config snippet for neovim's native language server client
1 parent 2d8164d commit 94d92af

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ Install the [HDL Checker VSCode client][hdl_checker_vscode] on VS Code.
5858

5959
#### Using [dense-analysis/ale][vim_ale]
6060

61-
See (PR [#2804][vim_ale_pr]), once it gets merged, ALE should support HDL Checker
62-
out of the box.
61+
ALE supports HDL Checker out of the box.
6362

6463
#### Using [coc.nvim][vim_coc_nvim]
6564

@@ -83,6 +82,26 @@ this to your [coc.nvim configuration file][vim_coc_nvim_config_file]:
8382
}
8483
}
8584
```
85+
#### Using NeoVim's native language server
86+
87+
```vim
88+
lua << EOF
89+
local nvim_lsp = require'nvim_lsp'
90+
-- Only define once
91+
if not nvim_lsp.hdl_checker then
92+
require'nvim_lsp/configs'.hdl_checker = {
93+
default_config = {
94+
cmd = {"hdl_checker", "--lsp", };
95+
filetypes = {"vhdl", "verilog", "systemverilog"};
96+
root_dir = function(fname)
97+
return nvim_lsp.util.find_git_ancestor(fname) or vim.loop.os_homedir()
98+
end;
99+
settings = {};
100+
};
101+
}
102+
end
103+
EOF
104+
```
86105

87106
#### Using [autozimu/LanguageClient-neovim][vim_lc_nvim]
88107

0 commit comments

Comments
 (0)