go.nvim icon indicating copy to clipboard operation
go.nvim copied to clipboard

Adding snippets

Open vodrazka opened this issue 1 year ago • 2 comments

Hello,

since go.nvim uses luasnip: go.nvim included a feature rich luasnips you definitally need to try., how could someone add their own snippets?

vodrazka avatar Nov 25 '24 15:11 vodrazka

You can add go.lua in lua/snippets of your config directory and refer to go.nvim with require some example: https://github.com/ray-x/nvim/tree/master/lua/snippets

ray-x avatar Nov 25 '24 20:11 ray-x

Thanks, could not figure out how to do it, so i just imported luasnip as a dedicated plugin.

vodrazka avatar Nov 26 '24 17:11 vodrazka