diff --git a/lua/plugs/dev.lua b/lua/plugs/dev.lua index 58e242b..6d6fe05 100644 --- a/lua/plugs/dev.lua +++ b/lua/plugs/dev.lua @@ -17,7 +17,11 @@ return { "nvim-treesitter/nvim-treesitter", }, ft = { "go", 'gomod' }, - build = ':lua require("go.install").update_all_sync()', + build = function() + if vim.fn.executable('go') == 1 then + require("go.install").update_all_sync() + end + end, config = function() require("go").setup() end,