Format SQL string on save in Go file

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • config_manager

    My configuration files and tools

  • I remember TJ doing something like this just with rust, so you could probably take som inspiration from that to do it with go: https://github.com/tjdevries/config_manager/blob/master/xdg_config/nvim/after/plugin/sql_rust_automagic.lua

  • neoformat

    :sparkles: A (Neo)vim plugin for formatting code.

  • You could use Neoformat, and manually run :NeoFormat! pgFormater on a visual selection or create an autocmd to do the same automatically on save.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • pg_go

    Postgresql formatter within .go files

  • I wrote up a quick plugin for this: pg_go This plugin is pretty barebones, so feel free to add any features or options if you like.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts