Skip to main content
Back to Extensions Directory
coc.nvim fallback icon

Makefile language server support for coc.nvim

Installation CommandVim prompt
:CocInstall coc-make
GitHub owner
Jelmer Vernooij
Version
v0.1.0
npm package
coc-make
Requirements
coc ^0.0.80
License
Apache-2.0
Repository
GitHub
npm latest published 2026-03-26Registry checked 2026-08-23Registry summary

Published Package Summary

coc-make

A coc.nvim extension that provides Language Server Protocol support for Makefiles.

Features

  • Diagnostics for parse errors
  • Completions for targets, variables, and built-in functions
  • Document symbols (outline of targets and variables)
  • Folding ranges
  • Semantic highlighting for targets, variables, prerequisites, recipes, and comments

Installation

Prerequisites

  • coc.nvim installed in Vim/Neovim
  • Node.js and npm
  • The makefile-lsp server built and available

Local Installation

  1. Build the makefile-lsp server first:

    cd /path/to/makefile-lsp
    cargo build --release
    
  2. Install and build the coc extension:

    cd coc-make
    npm install
    npm run build
    
  3. Install the extension in coc.nvim:

    :CocInstall file:///absolute/path/to/makefile-lsp/coc-make
    

    Or alternatively, create a symlink in your coc extensions directory:

    ln -s /absolute/path/to/makefile-lsp/coc-make ~/.config/coc/extensions/node_modules/coc-make
    
  4. Configure the LSP server path:

    Add the following to your coc-settings.json (:CocConfig in Vim):

    {
      "make.enable": true,
      "make.serverPath": "/absolute/path/to/makefile-lsp/target/release/makefile-lsp"
    }
    

Verify Installation

  1. Open a Makefile
  2. Try typing targets or variables and you should see completions
  3. Check :CocList extensions to see if coc-make is 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 make.serverPath points to the correct executable
  • No completions: Verify the file is recognized as a Makefile
  • Extension not loading: Check :CocList extensions and look for any error messages
Read the complete README
  • Makefile language server support for coc.nvim
Activation Events
  • onLanguage:make
Developer Resources

Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.

Open Developer Guide

Version 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.