add go.nvim and gopls settings

This commit is contained in:
Gilad Sher 2024-07-12 18:04:53 -04:00
parent bb659a72ac
commit 8f4dabefe6
4 changed files with 63 additions and 1 deletions

View file

@ -0,0 +1,14 @@
return {
'ray-x/go.nvim',
dependencies = { -- optional packages
'ray-x/guihua.lua',
'neovim/nvim-lspconfig',
'nvim-treesitter/nvim-treesitter',
},
config = function()
require('go').setup()
end,
event = { 'CmdlineEnter' },
ft = { 'go', 'gomod' },
build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries
}