coc-debian
coc-debianDebian language server support for coc.nvim (control, copyright, watch, changelog, tests/control, source/format, source/options, upstream/metadata, rules)
Published Package Summary
coc-debian
A coc.nvim extension that provides Language Server Protocol support for Debian control files.
Features
- Auto-completion for Debian control file field names
- Package name suggestions
- Automatic activation for
debian/controlfiles
Installation
Prerequisites
- coc.nvim installed in Vim/Neovim
- Node.js and npm
- The debian-lsp server built and available
Local Installation
-
Build the debian-lsp server first:
cd /path/to/debian-lsp cargo build --release -
Install and build the coc extension:
cd coc-debian npm install npm run build -
Install the extension in coc.nvim:
:CocInstall file:///absolute/path/to/debian-lsp/coc-debianOr alternatively, create a symlink in your coc extensions directory:
ln -s /absolute/path/to/debian-lsp/coc-debian ~/.config/coc/extensions/node_modules/coc-debian -
Configure the LSP server path:
Add the following to your coc-settings.json (
:CocConfigin Vim):{ "debian.enable": true, "debian.serverPath": "/absolute/path/to/debian-lsp/target/release/debian-lsp" }
Verify Installation
- Open a Debian control file (
debian/controlor any file namedcontrol) - Try typing field names and you should see completions
- Check
:CocList extensionsto see ifcoc-debianis listed and active
Development
To work on the extension:
# Watch for changes and rebuild
npm run watch
# After making changes, restart coc
:CocRestart
Troubleshooting
- LSP not starting: Check that the
debian.serverPathpoints to the correct executable - No completions: Verify the file is named
controlor is in adebian/directory - Extension not loading: Check
:CocList extensionsand look for any error messages
- Debian language server support for coc.nvim (control, copyright, watch, changelog, tests/control, source/format, source/options, upstream/metadata, rules)
- *
Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.
Open Developer GuideVersion History
This published npm package does not include a history.md or changelog.md file. Browse its npm versions or repository releases for available release information.
Contributed Commands
All contributes.commands entries from the published package manifest for coc-debian@0.1.7.
This package does not declare any contributed commands.
Configuration Schema
All contributes.configuration entries from the published package manifest, including each raw property schema for coc-settings.json.
Raw JSON Schema
{
"type": "boolean",
"default": true,
"description": "Enable debian language server"
}Raw JSON Schema
{
"type": "string",
"default": "debian-lsp",
"description": "Path to debian-lsp executable"
}Raw JSON Schema
{
"type": "boolean",
"default": true,
"description": "Enable format-on-type (auto-indent after newline, space after colon)"
}