use the nixvim way of loading snippets

This commit is contained in:
Michi Floßmann 2024-07-13 13:55:37 +02:00
parent fcf9336704
commit 5844802ff0

View file

@ -1,10 +1,9 @@
_:{ _:{
opts.enable = true; opts = {
enable = true;
# TODO: There's a better way to do this fromLua = [
rootOpts = { { paths = "~/.config/snippets/"; }
extraConfigLuaPre = '' ];
require("luasnip.loaders.from_lua").load({paths = "~/.config/snippets/"})
'';
}; };
} }