Skip to content

Commit

Permalink
added markdown snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
timosarkar committed Dec 12, 2024
1 parent d8b6564 commit b96c607
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions files/snippets/markdown.snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
snippet title "markdown title"
# $1
endsnippet

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# local files to include by home-manager
snippets = builtins.readFile ./files/snippets/all.snippets;
# aliases = builtins.readFile ./files/aliases;
markdown = builtins.readFile ./files/snippets/markdown.snippets;
in {
homeConfigurations = {
"${username}" = home-manager.lib.homeManagerConfiguration {
Expand All @@ -28,6 +29,7 @@

extraSpecialArgs = {
inherit snippets;
inherit markdown;
# inherit aliases;
};
};
Expand Down
7 changes: 6 additions & 1 deletion home.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, snippets, ... }:
{ config, pkgs, snippets, markdown, ... }:

let
# get current username
Expand Down Expand Up @@ -44,6 +44,11 @@ in
text = snippets;
force = true;
};

home.file.".vim/UltiSnips/markdown.snippets" = {
text = markdown;
force = true;
};

# vim
programs.vim = {
Expand Down

0 comments on commit b96c607

Please sign in to comment.