PostgreSQL plugin for Neovim.
To install this with lazy nvim, just add the following to your config:
require('lazy').setup({
  {
    "trstringer/psql"
  }
})Use psqlcm to connect to your postgres database. Then run the following commands:
:PgRun(<leader>x):PgCancel:PgTempto get a temporary SQL workspace:PgGetTable:PgGetFunction:PgGetDatabase
vim.keymap.set(
	'n',
	'<leader>x',
	psql.psql_run_curr_buf,
	{ desc = 'Execute the current buffer with psql' }
)
vim.keymap.set(
	'x',
	'<leader>x',
	'<ESC><CMD>lua require("psql").psql_run_visual()<CR>',
	{ desc = 'Execute selection with psql' }
)