From 5a67d4de86a22e00f766b793811d3d2de1aa85a1 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 2 Oct 2025 12:00:17 +0100 Subject: [PATCH] Add a keymap for easy error checking in Go Signed-off-by: Oliver Davies --- modules/nixvim/ftplugin/go.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/nixvim/ftplugin/go.nix b/modules/nixvim/ftplugin/go.nix index 21abe049..c827dd15 100644 --- a/modules/nixvim/ftplugin/go.nix +++ b/modules/nixvim/ftplugin/go.nix @@ -4,6 +4,8 @@ # lua '' vim.opt.makeprg = "go run %" + + vim.keymap.set("n", "n", "iif err != nil {return err}") ''; }; }