coc.nvim extension for Common Lisp, powered by cl-lsp. Provides LSP features (completions, diagnostics, go-to-definition, hover) plus snippets for Common Lisp buffers.
Install cl-lsp and ensure it is on your
PATH, or set cl.serverPath to its absolute location.
Inside Neovim:
:CocInstall coc-cl
Using packer.nvim:
use { "UltiRequiem/coc-cl", run = "npm ci && npm run build" }Using lazy.nvim:
{
"UltiRequiem/coc-cl",
build = "npm ci && npm run build",
}Add any of these to your coc-settings.json (:CocConfig):
| Key | Type | Default | Description |
|---|---|---|---|
cl.enabled |
boolean | true |
Enable/disable the extension |
cl.serverPath |
string | "cl-lsp" |
Path to the cl-lsp binary |
cl.serverArguments |
string[] | [] |
Extra arguments passed to cl-lsp |
cl.toolchainPath |
string | "" |
Optional path to the Lisp toolchain |
cl.maxNumberOfProblems |
number | 100 |
Max diagnostics shown |
cl.trace.server |
"off" | "messages" | "verbose" |
"off" |
LSP protocol tracing |
Example:
{
"cl.serverPath": "/usr/local/bin/cl-lsp",
"cl.trace.server": "verbose"
}| Command | Description |
|---|---|
cl.interrupt |
Send an interrupt signal to the running cl-lsp process |
git clone https://github.com/UltiRequiem/coc-cl
cd coc-cl
npm ci
npm run build # outputs lib/index.js
npm run watch # rebuild on file changes
npm run lint # run xo linterMIT — see license.