summaryrefslogtreecommitdiff
path: root/after/ftplugin/dot.lua
diff options
context:
space:
mode:
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" })