Repository navigation
|
Let's say I have a generic snippet defined as |
Answered by
L3MON4D3
Sep 13, 2023
Replies: 1 comment 1 reply
|
Would making snippets local to some project work? You can call |
1 reply
Answer selected by
medwatt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would making snippets local to some project work? You can call
require("luasnip.loaders.from_lua").load({paths = {vim.fn.getcwd() .. "/.luasnippets/"}})to load from a.luasnippets-directory in the current project (well, requires you to start nvim from the root-dir of that project, but for me at least that's always the case).