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

coc-sqlfluff

yaegassy

SQLFluff (A SQL linter and auto-formatter for Humans) extension for coc.nvim

Installation CommandVim prompt
:CocInstall coc-sqlfluff
GitHub owner
yaegassy
Version
v0.11.4
npm package
coc-sqlfluff
Requirements
coc ^0.0.80
License
MIT
Repository
GitHub
npm latest published 2023-05-16Registry checked 2026-08-23Registry summary

Published Package Summary

coc-sqlfluff

SQLFluff (A SQL linter and auto-formatter for Humans) extension for coc.nvim

coc-sqlfluff-demo

Features

  • Lint
  • Format
  • Code Action
  • Built-in installer

Install

CocInstall:

:CocInstall coc-sqlfluff

vim-plug:

Plug 'yaegassy/coc-sqlfluff', {'do': 'yarn install --frozen-lockfile'}

Detect: sqlfluff

  1. sqlfluff.commandPath setting
  2. PATH environment (e.g. system global PATH or venv, etc ...)
  3. builtin: extension-only "venv" (Installation commands are also provided)

Bult-in install

coc-sqlfluff allows you to create an extension-only "venv" and install "sqlfluff".

The first time you use coc-sqlfluff, if sqlfluff is not detected, you will be prompted to do a built-in installation.

You can also run the installation command manually.

:CocCommand sqlfluff.install

Code Actions

Example key mapping (Code Action related):

nmap <silent> ga <Plug>(coc-codeaction-line)

Usage:

In the line with diagnostic message, enter the mapped key (e.g. ga) and you will see a list of code actions that can be performed.

Actions:

  • Ignoring Errors for current line (-- noqa)
  • Ignoring Errors for current line (-- noqa: disable=all)
  • Ignoring Errors for current line (-- noqa: enable=all)
  • Show web documentation for {RULE_ID}

Thanks

License

MIT


This extension is built with create-coc-extension

Read the complete README
  • SQLFluff (A SQL linter and auto-formatter for Humans) extension for coc.nvim
Activation Events
  • onLanguage:sql
  • onLanguage:jinja-sql
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.