@epistemicdb/lsp
v0.2.1
Published
EQL Language Server Protocol — diagnostics, completions, hover, and formatting
Downloads
195
Maintainers
Readme
@epistemicdb/lsp
Language Server Protocol implementation for EQL (Epistemic Query Language) — provides diagnostics, completions, hover info, and formatting for EpistemicDB.
Features
- Diagnostics — Real-time syntax and type errors as you type
- Completions — Keywords, field names, epistemic classes, projections
- Hover — Documentation for EQL keywords and built-in functions
- Formatting — Auto-format EQL queries on save
Install
npm install @epistemicdb/lspUsage with VS Code
Install the EpistemicDB EQL extension — it bundles this LSP automatically.
Usage with other editors
Point your editor's LSP client at the server binary:
npx @epistemicdb/lsp --stdioNeovim (nvim-lspconfig)
require('lspconfig.configs').eql = {
default_config = {
cmd = { 'npx', '@epistemicdb/lsp', '--stdio' },
filetypes = { 'eql' },
root_dir = function(fname)
return require('lspconfig.util').find_git_ancestor(fname)
end,
},
}
require('lspconfig').eql.setup({})Documentation
Full docs at epistemicdb.com/docs
