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

Failing to import from_vscode snippets using ~/ syntax #1238

Open
pedromarquetti opened this issue Oct 2, 2024 · 1 comment
Open

Failing to import from_vscode snippets using ~/ syntax #1238

pedromarquetti opened this issue Oct 2, 2024 · 1 comment

Comments

@pedromarquetti
Copy link

When running

my init.lua

...
require('luasnip.loaders.from_vscode').lazy_load {
  paths = {
  '~/.config/Code/User/snippets/',
}
...

it does not import from the specified path.

if I

  1. clone my .config/Code snippets folder to my .config/nvim
  2. do require('luasnip.loaders.from_vscode').lazy_load()

It works normally.

I also tried creating a symbolic link to the original config, it works, but would be nice if i didn't have to do that

After reading the docs, it should accept ~/... paths.
Am I doing something wrong?

@L3MON4D3
Copy link
Owner

Hi :)
Could you insert ls.log.set_loglevel("info") before the call to lazy_load, open a new instance of neovim, and then call :lua ls.log.open()? There should be some information about lazy-loading, and which path exactly is looked at, I think that should help here :D

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

2 participants