mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-07 02:41:33 +00:00
snippets/luasnip: add setupOpts
Also fixed a bug where the plugin previously would not get loaded, as lazy was set to true without a trigger event.
This commit is contained in:
parent
4df1cc3a7f
commit
98a7959047
2 changed files with 9 additions and 7 deletions
|
@ -9,12 +9,12 @@
|
|||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
lazy.plugins = {
|
||||
luasnip = {
|
||||
package = "luasnip";
|
||||
lazy = true;
|
||||
after = cfg.loaders;
|
||||
};
|
||||
lazy.plugins.luasnip = {
|
||||
package = "luasnip";
|
||||
event = "BufEnter";
|
||||
after = cfg.loaders;
|
||||
setupModule = "luasnip";
|
||||
inherit (cfg) setupOpts;
|
||||
};
|
||||
startPlugins = cfg.providers;
|
||||
autocomplete.nvim-cmp = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue