diff --git a/nvim/lua/custom/plugins/rayx.lua b/nvim/lua/custom/plugins/rayx.lua new file mode 100644 index 0000000..8409bf7 --- /dev/null +++ b/nvim/lua/custom/plugins/rayx.lua @@ -0,0 +1,16 @@ +-- A feature-rich Go development plugin, leveraging gopls, treesitter AST, Dap, and various Go tools. +-- https://github.com/ray-x/go.nvim +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 +}