nix-config/modules/nixvim/ftplugin/go.nix
Oliver Davies 5a67d4de86
All checks were successful
/ check (push) Successful in 1m26s
Add a keymap for easy error checking in Go
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
2025-10-02 12:00:17 +01:00

11 lines
239 B
Nix

{
flake.modules.nixvim.custom = {
extraFiles."after/ftplugin/go.lua".text =
# lua
''
vim.opt.makeprg = "go run %"
vim.keymap.set("n", "<leader>n", "iif err != nil {return err}<CR><ESC>")
'';
};
}