Skip to content

Commit a892a19

Browse files
committed
Add map to run single golang source
1 parent bae3370 commit a892a19

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

after/ftplugin/go.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ opt.expandtab = false -- Expand tab to spaces so that tabs are spaces
1111
vim.keymap.set("n", "<Space>f", function()
1212
vim.cmd([[silent !gofumpt -w %]])
1313
end, { buffer = true, silent = true })
14+
15+
vim.keymap.set("n", "<F9>", function()
16+
vim.cmd[[!go run %]]
17+
end, {
18+
buffer = true,
19+
silent = true,
20+
})

0 commit comments

Comments
 (0)