Skip to content

Commit 5feae4a

Browse files
committed
fix gopher build logic
1 parent 1b1ff83 commit 5feae4a

File tree

1 file changed

+3
-2
lines changed
  • lua/kickstart/plugins/language/go

1 file changed

+3
-2
lines changed

lua/kickstart/plugins/language/go/go.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ return {
77
'nvim-treesitter/nvim-treesitter',
88
},
99
build = function()
10-
if vim.fn.executable(':GoInstallDeps') then
10+
if vim.bo.filetype == 'go' then
1111
vim.cmd.GoInstallDeps()
1212
else
13-
vim.notify('Gopher.nvim could not install dependencies, build again in a go file', vim.log.levels.WARN)
13+
vim.notify('Gopher.nvim could not install dependencies, Try running GoInstallDeps in a go file',
14+
vim.log.levels.WARN)
1415
end
1516
end,
1617
opts = {},

0 commit comments

Comments
 (0)