nixos-config/config/programs/vim/modules/languages/luasnip.nix

12 lines
299 B
Nix

{pkgs, ...}: {
output.plugins = with pkgs.vimPlugins; [
luasnip
];
output.extraConfig = ''
lua << EOF
require('luasnip-config')
require("luasnip.loaders.from_vscode").lazy_load()
require("luasnip.loaders.from_vscode").lazy_load({ paths = '${./snippets}' })
EOF
'';
}