yaegassy / coc-sqlfluff

SQLFluff (A SQL linter and auto-formatter for Humans) extension for coc.nvim
https://www.npmjs.com/package/coc-sqlfluff
MIT License
28 stars 1 forks source link

[coc.nvim] Error on notification "formatSelected": formatRange provider not found for current buffer, your language server doesn't support it. #12

Closed gou4shi1 closed 2 years ago

gou4shi1 commented 2 years ago

with latest coc

yaegassy commented 2 years ago

coc-sqlfluff does not support the ability to format by range. This is because the sqlfluff cli tool itself does not have an option to specify a range. https://docs.sqlfluff.com/en/stable/cli.html#sqlfluff-fix

gou4shi1 commented 2 years ago

Maybe we can send selected file content to the sqlfluff?