Replies: 3 comments 2 replies
-
This is likely an issue with your config. Remove the following lines in your blink config preset = 'luasnip',
-- ...
vim.schedule(function()
require("blink.cmp").reload("snippets")
end), Then load your snippets folder from your luasnip config. For instance, to load both your lua and vscode snippets located in for _, loader in ipairs({ 'lua', 'vscode' }) do
require(('luasnip.loaders.from_%s'):format(loader)).lazy_load({
paths = ('%s/snippets/%s'):format(vim.fn.stdpath('config'), loader),
})
end See https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#loaders |
Beta Was this translation helpful? Give feedback.
-
It needs to be set in your luasnip config. By taking your example, you'll end up with this: return {
"saghen/blink.cmp",
dependencies = {
-- omitted other dependencies for clarity
{
"L3MON4D3/LuaSnip",
version = "v2.*",
build = 'make install_jsregexp',
config = function()
for _, loader in ipairs({ 'lua', 'vscode' }) do
require(('luasnip.loaders.from_%s'):format(loader)).lazy_load({
paths = ('%s/snippets/%s'):format(vim.fn.stdpath('config'), loader),
})
end
end
},
},
opts = {
-- ...
}
} The reload of your snippets when edited should be handle automatically by luasnip, see |
Beta Was this translation helpful? Give feedback.
-
Glad to hear you succeeded in making it work! Happy tweaking! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, i recently switched to blink and i have not been able to use any of the snippets i had over at nvim_cmp. I had a couple of custom ones but i don't see any snippets at all, not from luasnip, friendly-snippets or others. I may have configured this wrong but i am unsure of what to do regarding this. Below is my config for blink:
`return {
}
`
Beta Was this translation helpful? Give feedback.
All reactions