use the nixvim way of loading snippets
This commit is contained in:
parent
fcf9336704
commit
5844802ff0
1 changed files with 5 additions and 6 deletions
|
|
@ -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/"; }
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue