change sql formatter back to sqlfmt

This commit is contained in:
Sam 2024-09-30 08:49:49 +01:00
parent 53d2343f04
commit 612affe2fd
1 changed files with 8 additions and 11 deletions

View File

@ -1,10 +1,6 @@
{ {
programs.nixvim.plugins.conform-nvim = { programs.nixvim.plugins.conform-nvim = {
enable = true; enable = true;
formatOnSave = {
lspFallback = true;
timeoutMs = 500;
};
notifyOnError = true; notifyOnError = true;
logLevel = "debug"; logLevel = "debug";
formattersByFt = { formattersByFt = {
@ -16,19 +12,20 @@
nix = ["alejandra"]; nix = ["alejandra"];
markdown = ["prettierd"]; markdown = ["prettierd"];
yaml = ["yamlfmt"]; yaml = ["yamlfmt"];
sql = ["sql-formatter"]; sql = ["sqlfmt"];
#sql = ["sql-formatter"];
bash = [ bash = [
"shellcheck" "shellcheck"
"shellharden" "shellharden"
"shfmt" "shfmt"
]; ];
}; };
formatters = { # formatters = {
sql-formatter = { # sql-formatter = {
command = "sql-formatter"; # command = "sql-formatter";
args = "--config ~/.config/sql-formatter/config.json"; # args = "--config ~/.config/sql-formatter/config.json";
}; # };
}; # };
}; };
home.file.".config/sql-formatter/config.json".text = '' home.file.".config/sql-formatter/config.json".text = ''