Closed matthewsia98 closed 1 year ago
You can use these functions to match wildcard, if that's what you need. I think the problem of autocmds is that, Jupynium also sets autocmds and the lazy loading only happens on autocmds, so the commands wouldn't be executed the first time the event happens.
Default keymaps are not applied when plugin is lazy loaded like this
I tried adding this bit of logic to the plugin setup function but it doesn't work because
autocommand-patterns
are not the same as lua patterns.I also tried using
glob2regpat
but that didn't quite work either.So I guess the question boils down to how do we check if a filename matches an
autocommand-pattern
. I haven't been able to figure that out.