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