diff --git a/modules/home-manager/coding/neovim/config/lua/opdavies/snippets/nix.lua b/modules/home-manager/coding/neovim/config/lua/opdavies/snippets/nix.lua index 9d823bb8..2e9d77fb 100644 --- a/modules/home-manager/coding/neovim/config/lua/opdavies/snippets/nix.lua +++ b/modules/home-manager/coding/neovim/config/lua/opdavies/snippets/nix.lua @@ -10,6 +10,39 @@ local fmta = require("luasnip.extras.fmt").fmta ls.add_snippets("nix", { s("homepackages", fmta("home.packages = with pkgs; [ <> ];", i(0))), + s( + "homepage_options", + fmta( + [[ + homepage.name = mkOption { + default = ""; + type = types.str; + }; + + homepage.description = mkOption { + default = ""; + type = types.str; + }; + + homepage.icon = mkOption { + default = ""; + type = types.str; + }; + + homepage.category = mkOption { + default = ""; + type = types.str; + }; + ]], + { + description = i(2), + finish = i(0), + icon = i(3), + name = i(1), + } + ) + ), + s( "imports", fmta(