reddit / emacs

(lsp-mode) lsp-verilog: svlangserver vs hdl_checker

Constant_Try_2065 ยท 2022-11-19 17:56
My understanding of elisp is very basic. I am going through lsp-verilog.el of \`lsp-mode\` package . I see 2 lsp clients are registered, both for major verilog-mode, with different priority values (-1, -2). Note that Emacs recognizes "\\\\.\[ds\]?va?h?\\\\'" as verilog-mode, which includes both verilog (i.e., \*.v) and SystemVerilog (i.e., \*.sv, \*.sva) files. "hdl\_checker" works for both Verilog and SystemVerilog files. so when I open ".sv" file \`:server-id 'lsp-verilog\` (i.e., hdl\_checker) is initialized by default. How do I switch between svlangserver and hdl\_checker for systemverilog (.sv, \*.sva)? Thank you for your time. Update: there is a workaround solution [here](https://github.com/emacs-lsp/lsp-mode/discussions/3814#discussioncomment-4185278)