nixvim conform add postgres language to sql-formatter

This commit is contained in:
Sam 2024-08-31 10:29:45 +01:00
parent d418d16fa4
commit 5a6dca3b5d
2 changed files with 3 additions and 3 deletions

View File

@ -57,6 +57,7 @@
" ==== dbui
let g:db_ui_hide_schemas = ['pg_catalog', 'pg_toast_temp.*', 'pg_toast']
let g:db_ui_use_nerd_fonts = 1
let g:db_ui_execute_on_save = 0
'';
};
}

View File

@ -25,19 +25,18 @@
};
formatters = {
sql-formatter = {
"inherit" = "false";
command = "sql-formatter";
args = "--config ~/.config/sql-formatter/config.json $FILENAME";
args = "--config ~/.config/sql-formatter/config.json";
};
};
};
home.file.".config/sql-formatter/config.json".text = ''
{
"language": "postgresql",
"tabWidth": 2,
"linesBetweenQueries": 1,
"expressionWidth": 88,
"denseOperators": true,
"newlineBeforeSemicolon": true
}