code_runner.nvim icon indicating copy to clipboard operation
code_runner.nvim copied to clipboard

how to run golang program

Open mikewang68 opened this issue 2 years ago • 1 comments

default filetype no golang , how to run golang program ? thanks

mikewang68 avatar Dec 14 '23 12:12 mikewang68

{
    "CRAG666/code_runner.nvim",
    opts = {
      mode = "toggleterm",
      filetype = {
        go = "go run",
      },
    },
}

You can use the snippet in your configuration of lazy.nvim.

pengshp avatar Jan 26 '24 17:01 pengshp