From 05ed37125b8f0bf534faaac521d1139ca5ae5dfc Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 14 Oct 2021 19:15:29 +0300 Subject: nvim: snippets to correct place --- .config/nvim/my_snippets/PKGBUILD.snippets | 5 +++++ .config/nvim/my_snippets/latex.snippets | 5 +++++ .config/nvim/my_snippets/ledger.snippets | 32 ++++++++++++++++++++++++++++++ .config/nvim/my_snippets/mail.snippets | 5 +++++ .config/nvim/my_snippets/vimwiki.snippets | 9 +++++++++ 5 files changed, 56 insertions(+) create mode 100644 .config/nvim/my_snippets/PKGBUILD.snippets create mode 100644 .config/nvim/my_snippets/latex.snippets create mode 100644 .config/nvim/my_snippets/ledger.snippets create mode 100644 .config/nvim/my_snippets/mail.snippets create mode 100644 .config/nvim/my_snippets/vimwiki.snippets (limited to '.config/nvim') diff --git a/.config/nvim/my_snippets/PKGBUILD.snippets b/.config/nvim/my_snippets/PKGBUILD.snippets new file mode 100644 index 0000000..f00053f --- /dev/null +++ b/.config/nvim/my_snippets/PKGBUILD.snippets @@ -0,0 +1,5 @@ +# vim:ft=snippets: + +snippet m "Maintainer line" b +# Maintainer: Yigit Sever +endsnippet diff --git a/.config/nvim/my_snippets/latex.snippets b/.config/nvim/my_snippets/latex.snippets new file mode 100644 index 0000000..fd53f4d --- /dev/null +++ b/.config/nvim/my_snippets/latex.snippets @@ -0,0 +1,5 @@ +# vim:ft=snippets: + +snippet on "O(n)" b +$\mathcal{O}(n)$ +endsnippet diff --git a/.config/nvim/my_snippets/ledger.snippets b/.config/nvim/my_snippets/ledger.snippets new file mode 100644 index 0000000..a8c4eb0 --- /dev/null +++ b/.config/nvim/my_snippets/ledger.snippets @@ -0,0 +1,32 @@ +# vim:ft=snippets: +# vim:set noexpandtab tabstop=4 shiftwidth=4: + +snippet c "New Checking Transaction" b +${1:`!v strftime("%Y")`}-${2:`!v strftime("%m")`}-${3:`!v strftime("%d")`} ${4:Payee} + Expenses:${5:} ${6:0.00} TL + Assets:Maas$0 +endsnippet + +snippet l "New Liabilities Transaction" b +${1:`!v strftime("%Y")`}-${2:`!v strftime("%m")`}-${3:`!v strftime("%d")`} ${4:Payee} + Expenses:${5:} ${6:0.00} TL + Liabilities:Maximum$0 +endsnippet + +snippet a "New Asmaalti Transaction" b +${1:`!v strftime("%Y")`}-${2:`!v strftime("%m")`}-${3:`!v strftime("%d")`} Asmaalti Piknik + Expenses:Food:Eating Out ${4:0.00} TL + ${5:Assets:Maas}$0 +endsnippet + +snippet y "New Yemeksepeti Transaction" b +${1:`!v strftime("%Y")`}-${2:`!v strftime("%m")`}-${3:`!v strftime("%d")`} Yemeksepeti + Expenses:Takeout ${4:0.00} TL + ${5:Liabilities:Maximum}$0 +endsnippet + +snippet m "New Migros Transaction" b +${1:`!v strftime("%Y")`}-${2:`!v strftime("%m")`}-${3:`!v strftime("%d")`} Migros Market + Expenses:Food:Groceries ${4:0.00} TL + ${5:Assets:Maas}$0 +endsnippet diff --git a/.config/nvim/my_snippets/mail.snippets b/.config/nvim/my_snippets/mail.snippets new file mode 100644 index 0000000..504b7fa --- /dev/null +++ b/.config/nvim/my_snippets/mail.snippets @@ -0,0 +1,5 @@ +# vim:ft=snippets: + +snippet ~ "signature" b +~yigit +endsnippet diff --git a/.config/nvim/my_snippets/vimwiki.snippets b/.config/nvim/my_snippets/vimwiki.snippets new file mode 100644 index 0000000..eb6f8b0 --- /dev/null +++ b/.config/nvim/my_snippets/vimwiki.snippets @@ -0,0 +1,9 @@ +# vim:ft=snippets: + +snippet link "Link a static content" b +{{local:/home/yigit/nextcloud/personal_wiki/html/static/${1:filename}|${2:alt text}}} +endsnippet + +snippet on "O(n)" b +$\mathcal{O}(n)$ +endsnippet -- cgit v1.2.3-70-g09d2