Skip to content

How to configure with vim? #68

Open
@coolaj86

Description

I tried to configure this with vim based on... the LLM that shall not be named... but when I add this to my ~/.vimrc it deletes the file and replaces it with the error message on error.

" Auto-format SQL files with sqlfmt on save
autocmd BufWritePre *.sql execute ':silent %!sqlfmt'

A misplaced comma like this

CREATE TABLE IF NOT EXISTS "customers" (
    "id" UUID PRIMARY KEY,
    "nickname" VARCHAR(255),
);

becomes

at or near ")": syntax error

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions