From 387e08c52d9752bc839c71119f140ba8435c3d70 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 18 Aug 2023 23:42:39 +0300 Subject: nvim: switch to lazy.nvim revert this as whole, if you miss the good old days --- .config/nvim/my_snippets/PKGBUILD.snippets | 5 - .config/nvim/my_snippets/all.snippets | 16 --- .config/nvim/my_snippets/c.snippets | 8 -- .config/nvim/my_snippets/ledger.snippets | 39 ------- .config/nvim/my_snippets/mail.snippets | 5 - .config/nvim/my_snippets/markdown.snippets | 5 - .config/nvim/my_snippets/tex.snippets | 172 ----------------------------- .config/nvim/my_snippets/vimwiki.snippets | 29 ----- 8 files changed, 279 deletions(-) delete mode 100644 .config/nvim/my_snippets/PKGBUILD.snippets delete mode 100644 .config/nvim/my_snippets/all.snippets delete mode 100644 .config/nvim/my_snippets/c.snippets delete mode 100644 .config/nvim/my_snippets/ledger.snippets delete mode 100644 .config/nvim/my_snippets/mail.snippets delete mode 100644 .config/nvim/my_snippets/markdown.snippets delete mode 100644 .config/nvim/my_snippets/tex.snippets delete mode 100644 .config/nvim/my_snippets/vimwiki.snippets (limited to '.config/nvim/my_snippets') diff --git a/.config/nvim/my_snippets/PKGBUILD.snippets b/.config/nvim/my_snippets/PKGBUILD.snippets deleted file mode 100644 index f00053f..0000000 --- a/.config/nvim/my_snippets/PKGBUILD.snippets +++ /dev/null @@ -1,5 +0,0 @@ -# vim:ft=snippets: - -snippet m "Maintainer line" b -# Maintainer: Yigit Sever -endsnippet diff --git a/.config/nvim/my_snippets/all.snippets b/.config/nvim/my_snippets/all.snippets deleted file mode 100644 index 338d1d7..0000000 --- a/.config/nvim/my_snippets/all.snippets +++ /dev/null @@ -1,16 +0,0 @@ -# vim:ft=snippets: - -global !p -from vimsnippets import get_comment_format -endglobal - -snippet fancybox "Box" -`!p snip.rv = '┌' + '─' * (len(t[1]) + 2) + '┐'` -│ $1 │ -`!p snip.rv = '└' + '─' * (len(t[1]) + 2) + '┘'` -$0 -endsnippet - -snippet todo "TODO comment" bw -`!p snip.rv=get_comment_format()[0]` TODO: $0 <`!v strftime('%d-%m-%y')`, yigit> `!p snip.rv=get_comment_format()[2]` -endsnippet diff --git a/.config/nvim/my_snippets/c.snippets b/.config/nvim/my_snippets/c.snippets deleted file mode 100644 index 524b47f..0000000 --- a/.config/nvim/my_snippets/c.snippets +++ /dev/null @@ -1,8 +0,0 @@ -# vim:ft=snippets: -priority 100 - -snippet if "if only" b -if (${1:true}) { - ${0:{VISUAL}} -} -endsnippet diff --git a/.config/nvim/my_snippets/ledger.snippets b/.config/nvim/my_snippets/ledger.snippets deleted file mode 100644 index 098a767..0000000 --- a/.config/nvim/my_snippets/ledger.snippets +++ /dev/null @@ -1,39 +0,0 @@ -# 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 - -snippet sb "New Sosyal Bina Transaction" b -${1:`!v strftime("%Y")`}-${2:`!v strftime("%m")`}-${3:`!v strftime("%d")`} Sosyal Bina - Expenses:Food:Lunch 8.60 TL - Assets:Maas$0 -endsnippet - diff --git a/.config/nvim/my_snippets/mail.snippets b/.config/nvim/my_snippets/mail.snippets deleted file mode 100644 index 504b7fa..0000000 --- a/.config/nvim/my_snippets/mail.snippets +++ /dev/null @@ -1,5 +0,0 @@ -# vim:ft=snippets: - -snippet ~ "signature" b -~yigit -endsnippet diff --git a/.config/nvim/my_snippets/markdown.snippets b/.config/nvim/my_snippets/markdown.snippets deleted file mode 100644 index 3486dd2..0000000 --- a/.config/nvim/my_snippets/markdown.snippets +++ /dev/null @@ -1,5 +0,0 @@ -# vim:ft=snippets: - -snippet link "Link to something" b -[${1:${VISUAL:Text}}](`xsel -ob`)$0 -endsnippet diff --git a/.config/nvim/my_snippets/tex.snippets b/.config/nvim/my_snippets/tex.snippets deleted file mode 100644 index 727253f..0000000 --- a/.config/nvim/my_snippets/tex.snippets +++ /dev/null @@ -1,172 +0,0 @@ -# vim:ft=snippets: -# https://castel.dev/post/lecture-notes-1/ - -global !p -def math(): - return vim.eval('vimtex#syntax#in_mathzone()') == '1' -endglobal - -snippet template "Basic template" b -\documentclass[a4paper]{article} - -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage{textcomp} -\usepackage{babel} -\usepackage{amsmath, amssymb} - -% figure support -\usepackage{import} -\usepackage{xifthen} -\pdfminorversion=7 -\usepackage{pdfpages} -\usepackage{transparent} - -\begin{document} - $0 -\end{document} -endsnippet - -snippet beg "begin{} / end{}" bA -\\begin{$1} - $0 -\\end{$1} -endsnippet - -priority 100 -snippet ... "ldots" iA -\ldots -endsnippet - -snippet table "Table environment" b -\begin{table}[${1:htpb}] - \centering - \caption{${2:caption}}% - \label{tab:${3:label}} - \begin{tabular}{${5:c}} - $0${5/((?<=.)c|l|r)|./(?1: & )/g} - \end{tabular} -\end{table} -endsnippet - -snippet fig "Figure environment" b -\begin{figure}[${1:htpb}] - \centering - ${2:\includegraphics[width=0.8\textwidth]{$3}} - \caption{${4:$3}}% - \label{fig:${5:${3/\W+/-/g}}} -\end{figure} -endsnippet - -snippet enum "Enumerate" bA -\begin{enumerate} - \item $0 -\end{enumerate} -endsnippet - -snippet item "Itemize" bA -\begin{itemize} - \item $0 -\end{itemize} -endsnippet - -snippet desc "Description" b -\begin{description} - \item[$1] $0 -\end{description} -endsnippet - -snippet on "O(n)" b -\mathcal{O}(n) -endsnippet - -snippet mk "Math" wA -$${1}$`!p -if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']: - snip.rv = ' ' -else: - snip.rv = '' -`$2 -endsnippet - -snippet dm "Math" wA -\[ -${1:${VISUAL}} -.\] $0 -endsnippet - -context "math()" -snippet '([A-Za-z])(\d)' "auto subscript" wrA -`!p snip.rv = match.group(1)`_`!p snip.rv = match.group(2)` -endsnippet - -context "math()" -snippet '([A-Za-z])_(\d\d)' "auto subscript2" wrA -`!p snip.rv = match.group(1)`_{`!p snip.rv = match.group(2)`} -endsnippet - -context "math()" -snippet // "Fraction" iA -\\frac{$1}{$2}$0 -endsnippet - -context "math()" -snippet '((\d+)|(\d*)(\\)?([A-Za-z]+)((\^|_)(\{\d+\}|\d))*)/' "Fraction" wrA -\\frac{`!p snip.rv = match.group(1)`}{$1}$0 -endsnippet - -snippet sec "Section" -\section{${1:${VISUAL:section name}}}% -\label{sec:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3\E)/ga}}} - -$0 -endsnippet - -snippet sec* "Section" -\section*{${1:${VISUAL:section name}}}% -\label{sec:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3\E)/ga}}} - -${0} -endsnippet - - -snippet sub "Subsection" -\subsection{${1:${VISUAL:subsection name}}}% -\label{sub:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3\E)/ga}}} - -$0 -endsnippet - -snippet sub* "Subsection" -\subsection*{${1:${VISUAL:subsection name}}}% -\label{sub:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3\E)/ga}}} - -${0} -endsnippet - -snippet ssub "Subsubsection" -\subsubsection{${1:${VISUAL:subsubsection name}}}% -\label{ssub:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3\E)/ga}}} - -$0 -endsnippet - -snippet ssub* "Subsubsection" -\subsubsection*{${1:${VISUAL:subsubsection name}}}% -\label{ssub:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3\E)/ga}}} - -${0} -endsnippet - -snippet "mint(ed)?( (\S+))?" "Minted code typeset" br -\begin{listing} -\begin{minted}[linenos,numbersep=5pt,frame=lines,framesep=2mm]{${1:`!p -snip.rv = match.group(3) if match.group(2) is not None else "language"`}} -${2:${VISUAL:code}} -\end{minted} -\caption{${3:caption name}} -\label{lst:${4:${3/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3\E)/ga}}} -\end{listing} - -$0 -endsnippet diff --git a/.config/nvim/my_snippets/vimwiki.snippets b/.config/nvim/my_snippets/vimwiki.snippets deleted file mode 100644 index daf93f7..0000000 --- a/.config/nvim/my_snippets/vimwiki.snippets +++ /dev/null @@ -1,29 +0,0 @@ -# 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 - -snippet s "Create a new spotlight item" b -- (`!v strftime("%F %R")`) `xsel -ob` -- ${1:Summary} -endsnippet - -snippet '- s' "Create a new spotlight item" w -- (`!v strftime("%F %R")`) `xsel -ob` -- ${1:Summary} -endsnippet - -snippet "h([1-6])" "Headings" rbA -`!p snip.rv = '=' * int(match.group(1)) ` ${1:${VISUAL}} `!p snip.rv = '=' * int(match.group(1))` -$0 -endsnippet - -snippet mcd "multi-line code" bA -{{{ $1 -${2:${VISUAL}} -}}} -$0 -endsnippet -- cgit v1.2.3-70-g09d2