Open seralv opened 1 year ago
Have you looked into friendly-snippets, or vim-snippets? If you add them (via your package-manager), and load either vscode or snipmate snippets (via luasnip-config), they should be available
You can use a vscode snippet collection containing them, like https://github.com/pirulug/bootstrap5-snippets
Would you guide me how to do that please?
Just add it as a nvim plugin in your package manager (lazy, packer, ....) and luasnip vscode loader will find it.
Not loaded :(
Make luasnip depend on it, something like: { "L3MON4D3/LuaSnip", dependencies = { "rafamadriz/friendly-snippets", "pirulug/bootstrap5-snippets" }, }
Good, now is installed, but I want this for help me autocomplete code when I coding, but it doesn't work. What I have to do?
In your config, load the snippets as documented:
require("luasnip.loaders.from_vscode").lazy_load()
I have this in Lua/plugins/configs/others.lua, but not working the autocomplete in bootstrap code.
Why do you load and then lazy-load the snippets? Check https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#logging and set it up so you can see the logs. Maybe you can find clues of what's happening.
Does somebody know for some bootstrap5 snippets or, how can I create that snippet? I need that for NvChad, thanks.