nixvim conform add postgres language to sql-formatter
This commit is contained in:
parent
d418d16fa4
commit
5a6dca3b5d
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue