Added script to manage stow
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
snippet sout "Sout" b
|
||||
System.out.println($1);
|
||||
endsnippet
|
||||
@@ -0,0 +1,54 @@
|
||||
snippet article "WriteArticle"
|
||||
\documentclass{article}
|
||||
|
||||
\title{$1}
|
||||
\date{$2}
|
||||
\author{Nicholas Novak}
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
$3
|
||||
|
||||
\end{document}
|
||||
endsnippet
|
||||
|
||||
snippet box "Box"
|
||||
`!p snip.rv = '┌' + '─' * (len(t[1]) + 2) + '┐'`
|
||||
│ $1 │
|
||||
`!p snip.rv = '└' + '─' * (len(t[1]) + 2) + '┘'`
|
||||
$0
|
||||
endsnippet
|
||||
|
||||
snippet beg "Begin" b
|
||||
\begin{$1}
|
||||
$2
|
||||
\end{$1}
|
||||
endsnippet
|
||||
|
||||
snippet mk "InlineMath" wA
|
||||
$${1}$`!p
|
||||
if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']:
|
||||
snip.rv = ' '
|
||||
else:
|
||||
snip.rv = ''
|
||||
`$2
|
||||
endsnippet
|
||||
|
||||
snippet dm "BlockMath" wA
|
||||
\[
|
||||
$1
|
||||
\]$0
|
||||
endsnippet
|
||||
|
||||
snippet check "CheckMark"
|
||||
\textcolor{ForestGreen}{\checkmark}
|
||||
endsnippet
|
||||
|
||||
snippet corr "Correct"
|
||||
\textcolor{red}{$1}
|
||||
endsnippet
|
||||
|
||||
snippet pm "Parenthesied matrix" A
|
||||
\begin{pmatrix}$1\end{pmatrix}
|
||||
endsnippet
|
||||
@@ -0,0 +1,43 @@
|
||||
call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
|
||||
|
||||
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
||||
|
||||
Plug 'vim-python/python-syntax'
|
||||
|
||||
Plug 'srcery-colors/srcery-vim'
|
||||
|
||||
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
|
||||
|
||||
" Latex
|
||||
Plug 'lervag/vimtex'
|
||||
Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
|
||||
|
||||
call plug#end()
|
||||
|
||||
set autowrite
|
||||
|
||||
" Go configuration
|
||||
let g:go_highlight_fields = 1
|
||||
let g:go_highlight_functions = 1
|
||||
let g:go_highlight_function_calls = 1
|
||||
let g:go_highlight_extra_types = 1
|
||||
let g:go_highlight_operators = 1
|
||||
|
||||
let g:go_auto_type_info = 1
|
||||
|
||||
" Python syntax config
|
||||
let g:python_highlight_all = 1
|
||||
|
||||
" Vimtex configuration
|
||||
let g:vimtex_view_method = 'zathura'
|
||||
let g:vimtex_quickfix_mode=0
|
||||
|
||||
set cc=80
|
||||
set tw=792034
|
||||
set background=dark
|
||||
set clipboard=unnamedplus
|
||||
set expandtab
|
||||
set tabstop=2
|
||||
set shiftwidth=2
|
||||
set mouse=a
|
||||
colorscheme srcery
|
||||
Reference in New Issue
Block a user