Skip to content

Commit

Permalink
feat: psql repl
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Nov 6, 2024
1 parent a86e136 commit 18180bc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions plugins/iron.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ return function()

iron.setup {
config = {
highlight_last = false,
repl_definition = {
sql = {
command = { "psql" },
},
typescript = {
command = { "ts-node" },
},
},
repl_open_cmd = view.split "30%",
},
}

vim.keymap.set("x", "<C-M>", function()
iron.send(nil, iron.mark_visual())
end, { desc = "[repl] visual send" })
end

0 comments on commit 18180bc

Please sign in to comment.