Add a keymap for easy error checking in Go
All checks were successful
/ check (push) Successful in 1m26s
All checks were successful
/ check (push) Successful in 1m26s
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
e0ae013131
commit
5a67d4de86
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
|||
# lua
|
||||
''
|
||||
vim.opt.makeprg = "go run %"
|
||||
|
||||
vim.keymap.set("n", "<leader>n", "iif err != nil {return err}<CR><ESC>")
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue