summaryrefslogtreecommitdiff
path: root/after/ftplugin/dot.lua
diff options
context:
space:
mode:
authorMarcelo <setanta@gmail.com>2025-03-03 21:05:55 -0300
committerMarcelo Lira <setanta@gmail.com>2025-03-07 02:15:25 -0300
commitc78361a6155dd53cd1098f7fdf33acfea20dc903 (patch)
treee13b8065c4a1180f3b1d483676b55af4cba2ee4c /after/ftplugin/dot.lua
Initial commit.
Diffstat (limited to 'after/ftplugin/dot.lua')
-rw-r--r--after/ftplugin/dot.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/after/ftplugin/dot.lua b/after/ftplugin/dot.lua
new file mode 100644
index 0000000..99fc056
--- /dev/null
+++ b/after/ftplugin/dot.lua
@@ -0,0 +1,2 @@
+vim.keymap.set("n", "<F5>", "<CMD>update | !dot % -Tpng > /tmp/%:t:r.png && sxiv /tmp/%:t:r.png<CR>",
+ { desc = "Generate PNG image" })