Skip to content

Commit

Permalink
feat(lvim): add pg_format
Browse files Browse the repository at this point in the history
brew install pgformatter
  • Loading branch information
0xRichardH committed Apr 15, 2023
1 parent 2ff8f1d commit a5f556d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ brew 'fd' # alternative to 'find'
brew 'fzf'
brew 'gum' # A tool for glamorous shell scripts 🎀
brew 'lf' # Terminal file manager
brew 'pgformatter'

# Fonts
cask 'font-jetbrains-mono'
Expand Down
10 changes: 8 additions & 2 deletions config/lvim/lua/user/lsp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ linters.setup {
fileTypes = "typescript, typescriptreact, javascript"
},

{ name = "golangci_lint", args = { "run", "--fix=false", "--out-format=json", "--path-prefix", "$ROOT" }, filetypes = { "go" } },
{
name = "golangci_lint",
args = { "run", "--fix=false", "--out-format=json", "--path-prefix", "$ROOT" },
filetypes = { "go" }
},
}

-- Formatters
Expand All @@ -33,5 +37,7 @@ formatters.setup {
fileTypes = { "typescript", "typescriptreact", "javascript", "css", "html" }
},

{ name = "gofumpt", filetypes = { "go" } },
{ name = "gofumpt", filetypes = { "go" } },

{ name = "pg_format", filetypes = { "sql" } },
}

0 comments on commit a5f556d

Please sign in to comment.