| Crates.io | sqlfluff-lsp |
| lib.rs | sqlfluff-lsp |
| version | 0.3.0 |
| created_at | 2025-11-20 18:57:34.671155+00 |
| updated_at | 2025-12-03 06:09:46.33831+00 |
| description | Language Server for the SQL linting & formatting tool, SQLFluff. |
| homepage | |
| repository | https://github.com/VasanthakumarV/sqlfluff-lsp |
| max_upload_size | |
| id | 1942431 |
| size | 134,554 |
| crates.io |
Language Server for the SQL linting & formatting tool, SQLFluff.
[!NOTE] The server expects
sqlfluffto be installed and added to the PATH.
If that is not feasible, pass the absolute path via--sqlfluff-pathflag,
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.
From crates.io using cargo,
cargo install sqlfluff-lsp
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
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"]