Unclaimed project
Are you a maintainer of vespa? Claim this project to take control of your public changelog and roadmap.
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.
Requires Java 17 or newer.
Optional: lspconfig plugin for nvim.
Download schema-language-server-jar-with-dependencies.jar.
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')
If you don't want to use lspconfig you can refer to the LSP documentation for Neovim for manually registering the server.