Skip to content

Language Server Protocol

Gonzalo Larumbe edited this page Apr 7, 2024 · 5 revisions

Supported servers

Requirements

  • Make sure that Language Server binary you are using is in the $PATH:
    $ which vhdl_ls
    /usr/local/bin/vhdl_ls
  • Configure vhdl-ext to connect to that server:
    • Interactively:
      • For lsp-bridge: M-x vhdl-ext-lsp-bridge-set-serverRET ve-rust-hdl
      • For lsp-mode: M-x vhdl-ext-lsp-set-serverRET ve-rust-hdl
      • For eglot: M-x vhdl-ext-eglot-set-serverRET ve-rust-hdl
      • For lspce: M-x vhdl-ext-lspce-set-serverRET ve-rust-hdl
    • Programatically:
      ;; For `lsp-bridge:
      (vhdl-ext-lsp-bridge-set-server 've-rust-hdl)
      ;; For `lsp-mode':
      (vhdl-ext-lsp-set-server 've-rust-hdl)
      ;; For `eglot':
      (vhdl-ext-eglot-set-server 've-rust-hdl)
      ;; For `lspce':
      (vhdl-ext-lspce-set-server 've-rust-hdl)

Configuration

Depending on the Language Server you are using different configuration methods exist, such as YAML, JSON or TOML files placed at the project root. To know how to configure each Language Server refer to their respective documentation.

Clone this wiki locally