Skip to content

LuaSnip Configuration #2253

Answered by dpetka2001
WilliamHangXu asked this question in Q&A
Dec 26, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote
  1. I don't believe you should do that. Those come from friendly-snippets and you would have to change the source files from the plugin. That has the possibility that in a future update of friendly-snippets it will revert back to the previous change or you may also not be able to update friendly-snippets any more because you will have made local changes to the git state and it will diverge from the remote branch.
    You should instead copy that snippet into your custom personal ones and use it with a different prefix.
  2. I have my custom snippets in ~/.config/nvim/lua/snippets and make Luasnip aware of them with the following
-- ~/.config/nvim/lua/plugins/luasnip.lua
return {
  {
    "L3MON4D3/Lu…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@WilliamHangXu
Comment options

@weberam2
Comment options

Answer selected by WilliamHangXu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants