Skip to content

UltiRequiem/coc-cl

coc-cl

CI npm version License: MIT

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.

Prerequisites

Install cl-lsp and ensure it is on your PATH, or set cl.serverPath to its absolute location.

Install

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",
}

Configuration

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"
}

Commands

Command Description
cl.interrupt Send an interrupt signal to the running cl-lsp process

Development

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 linter

License

MIT — see license.

About

〰️ Common Lisp language extension for coc.nvim

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors