diff --git a/ftplugin/go.vim b/ftplugin/go.vim index 548e49e..ed480af 100644 --- a/ftplugin/go.vim +++ b/ftplugin/go.vim @@ -11,6 +11,4 @@ setlocal commentstring=//\ %s setlocal noexpandtab -compiler go - " vim: sw=2 ts=2 et diff --git a/lua/go/asyncmake.lua b/lua/go/asyncmake.lua index 95e646d..4bff834 100644 --- a/lua/go/asyncmake.lua +++ b/lua/go/asyncmake.lua @@ -41,6 +41,9 @@ function M.make(...) local optarg, _, reminder = getopt.get_opts(args, short_opts, long_opts) log(makeprg, args, short_opts, optarg, reminder) + if vim.fn.empty(makeprg) == 0 and args[1] == 'go' then + vim.notify('makeprg is already set to ' .. makeprg .. ' args: '.. vim.inspect(args), vim.lsp.log_levels.WARN) + end -- local indent = "%\\%( %\\)" if not makeprg then log("makeprog not setup")