Merge branch 'main' into main

This commit is contained in:
raf 2025-01-12 23:32:11 +03:00 committed by GitHub
commit 2e3c479e84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 7 deletions

View file

@ -9,12 +9,15 @@
in {
config = mkIf cfg.enable {
vim = {
lazy.plugins = {
luasnip = {
package = "luasnip";
lazy = true;
after = cfg.loaders;
};
lazy.plugins.luasnip = {
package = "luasnip";
lazy = true;
setupModule = "luasnip";
inherit (cfg) setupOpts;
after = cfg.loaders;
};
startPlugins = cfg.providers;
autocomplete.nvim-cmp = {

View file

@ -1,7 +1,7 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption mkOption literalExpression literalMD;
inherit (lib.types) listOf lines;
inherit (lib.nvim.types) pluginType;
inherit (lib.nvim.types) pluginType mkPluginSetupOption;
in {
options.vim.snippets.luasnip = {
enable = mkEnableOption "luasnip";
@ -32,5 +32,9 @@ in {
```
'';
};
setupOpts = mkPluginSetupOption "LuaSnip" {
enable_autosnippets = mkEnableOption "autosnippets";
};
};
}