added sql formatter
This commit is contained in:
parent
f6e3fa6a86
commit
5c93afcb2b
2 changed files with 6 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ return {
|
||||||
haskell = nixCats("lang.haskell.format") and { "ormolu" } or nil,
|
haskell = nixCats("lang.haskell.format") and { "ormolu" } or nil,
|
||||||
proto = nixCats("lang.protobuf.format") and { "buf" } or nil,
|
proto = nixCats("lang.protobuf.format") and { "buf" } or nil,
|
||||||
toml = nixCats("lang.toml.format") and { "taplo" } or nil,
|
toml = nixCats("lang.toml.format") and { "taplo" } or nil,
|
||||||
|
sql = nixCats("lang.sql.format") and { "sqlfluff" } or nil,
|
||||||
},
|
},
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
timeout_ms = 500,
|
timeout_ms = 500,
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,9 @@ in {
|
||||||
bash = {
|
bash = {
|
||||||
lsp = [bash-language-server];
|
lsp = [bash-language-server];
|
||||||
};
|
};
|
||||||
|
sql = {
|
||||||
|
format = [sqlfluff];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -300,6 +303,8 @@ in {
|
||||||
toml.format = true;
|
toml.format = true;
|
||||||
|
|
||||||
bash.lsp = true;
|
bash.lsp = true;
|
||||||
|
|
||||||
|
sql.format = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue