sqlfluff-lsp

Crates.iosqlfluff-lsp
lib.rssqlfluff-lsp
version0.3.0
created_at2025-11-20 18:57:34.671155+00
updated_at2025-12-03 06:09:46.33831+00
descriptionLanguage Server for the SQL linting & formatting tool, SQLFluff.
homepage
repositoryhttps://github.com/VasanthakumarV/sqlfluff-lsp
max_upload_size
id1942431
size134,554
Vasanthakumar Vijayasekaran (VasanthakumarV)

documentation

README

sqlfluff-lsp

| crates.io |

Language Server for the SQL linting & formatting tool, SQLFluff.

[!NOTE] The server expects sqlfluff to be installed and added to the PATH.
If that is not feasible, pass the absolute path via --sqlfluff-path flag,
e.g. sqlfluff-lsp --dialect=ansi --sqlfluff-path=/Users/vasanth/bin/sqlfluff.

[!WARNING] This tool might be rough around the edges, it is not widely tested.

Installation

cargo

From crates.io using cargo,

cargo install sqlfluff-lsp
pixi

Package also published in conda-forge (sqlfluff cli is already listed as sqlfuff-lsp's runtime dependency here).

You can use pixi for global installation,

pixi global install --expose sqlfluff-lsp --expose sqlfluff sqlfluff-lsp

or within a project,

pixi add sqlfluff-lsp

Configuration

Helix

A sql dialect must be supplied either via languages.toml file (as shown below) or through a sqlfluff configuration file.

For the list of dialects and their labels, please refer this link.

[language-server.sqlfluff]
command = "sqlfluff-lsp"
args = ["serve", "--dialect=snowflake"]

[[language]]
name = "sql"
language-servers = ["sqlfluff"]
Commit count: 0

cargo fmt