nix/nvim/config/lua/neoformat-config.lua

11 lines
219 B
Lua
Raw Normal View History

2022-12-02 21:18:32 +00:00
vim.g.neoformat_sql_sqlformat = {
exe = "sqlformat",
args = { "--reindent", "-k", "upper", "-" },
stdin = 1
}
vim.api.nvim_create_autocmd("BufWritePre", {
pattern = { "*.sql" },
command = "Neoformat",
})