A coc.nvim extension that integrates SQLFluff, a SQL linter and auto-formatter for humans, into NeoVim/Vim. Version 0.11.4 provides linting, formatting (including format command for SQLFluff v2+), code actions, and a built-in installer that creates an extension-only venv. It supports multiple SQL dialects (ansi, bigquery, postgres, etc.) and respects SQLFluff configuration files (setup.cfg, .sqlfluff, pyproject.toml). Actively maintained, it is the go-to choice for NeoVim users needing SQL linting/formatting inside coc.nvim.
npm install coc-sqlfluffNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs coc-sqlfluff, sets a dialect, and maps code action/format keys.
Update coc.nvim to >=0.0.80
Ensure SQLFluff version >=2.0.0 or use :CocCommand sqlfluff.fix
Configure 'sqlfluff.builtin.pythonPath' in CocConfig
Place .sqlfluff at project root for custom rules
Install coc.nvim first, then run :CocInstall inside a Vim/Neovim instance
Run :CocCommand sqlfluff.install to install via built-in venv, or install sqlfluff manually and set 'sqlfluff.commandPath'
Use built-in installer via :CocCommand sqlfluff.install or ensure system Python has sqlfluff