Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution to vscode-go snippets not loading #276

Open
mgnsk opened this issue Mar 27, 2024 · 0 comments
Open

Solution to vscode-go snippets not loading #276

mgnsk opened this issue Mar 27, 2024 · 0 comments

Comments

@mgnsk
Copy link

mgnsk commented Mar 27, 2024

I started noticing that go snippets stopped working some time ago. vscode-go has moved the extension into the extension subdirectory: golang/vscode-go@690cf2e

This results in vim-vsnip not being able to find the package.json file since the subdirectory is not in vim's runtime path. All I needed to do was to add the new path to rtp.

An example lazy.nvim config:

{
	"golang/vscode-go", -- For go snippets.
	config = function(plugin)
		vim.opt.rtp:append(vim.fn.resolve(plugin.dir .. "/extension"))
	end,
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant