github vespa-engine/vespa lsp-v2.4.7
Vespa Language Server 2.4.7

one day ago

The Language-server for Vespa schemas

Use the jar file to integrate the language server into your favorite editor.

For Visual Studio Code and IntelliJ the language server should also be available in the marketplace for the editor.

Schema Language Server in Neovim

Requirements

Requires Java 17 or newer.

Optional: lspconfig plugin for nvim.

Installation

Download schema-language-server-jar-with-dependencies.jar.

Using lspconfig

The language server is registered at lspconfig as vespa_ls. If you have lspconfig installed, all that needs to
be done is to enable the language server.

Register .sd, .profile and .yql as filetypes (in init.lua):

vim.filetype.add {
  extension = {
    profile = 'sd',
    sd = 'sd',
    yql = 'yql'
  }
}

Create a config for schema language server (in init.lua):

vim.lsp.config('vespa_ls', {
    cmd = { 'java', '-jar', '/path/to/vespa-language-server_X.X.X.jar' },
    -- on_attach = ...
})

vim.lsp.enable('vespa_ls')

Manual Installation

If you don't want to use lspconfig you can refer to the LSP documentation for Neovim for manually registering the server.

What's New

  • Support for multiple inheritance of match-features.
  • Fixed formatting bugs.

Don't miss a new vespa release

NewReleases is sending notifications on new releases.