From 30a7caa7b22d0ac3ad002e923a54ec619e0cb497 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 6 May 2020 00:34:55 -0700 Subject: [PATCH 1/3] Add UltiSnips. --- nvim/.config/nvim/init.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 3acb9bb..07956a8 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -4,8 +4,10 @@ Plug 'ncm2/ncm2' Plug 'autozimu/LanguageClient-neovim', {'branch': 'next', 'do': 'bash install.sh' } Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' } Plug 'junegunn/fzf.vim' +Plug 'SirVer/ultisnips' Plug 'lervag/vimtex' +Plug 'idris-hackers/idris-vim' Plug 'rhysd/vim-crystal' Plug 'elmcast/elm-vim' Plug 'ap/vim-css-color' @@ -48,4 +50,7 @@ let g:LanguageClient_rootMarkers = { \ 'haskell': ['.git'], \ 'elm': ['elm.json'], \ } +let g:UltiSnipsExpandTrigger="" +let g:UltiSnipsJumpForwardTrigger="" +let g:UltiSnipsJumpBackwardTrigger="" colorscheme nord From 989af2f68544195d99c4d690fdfa89c00e2ab3c2 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 6 May 2020 00:38:40 -0700 Subject: [PATCH 2/3] Add snippets to repo --- nvim/.config/nvim/UltiSnips/tex.snippets | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 nvim/.config/nvim/UltiSnips/tex.snippets diff --git a/nvim/.config/nvim/UltiSnips/tex.snippets b/nvim/.config/nvim/UltiSnips/tex.snippets new file mode 100644 index 0000000..2c113b8 --- /dev/null +++ b/nvim/.config/nvim/UltiSnips/tex.snippets @@ -0,0 +1,49 @@ +snippet eq +\begin{equation*} + $1 +\end{equation*} +endsnippet + +snippet al +\begin{aligned} + $1 +\end{aligned} +endsnippet + +snippet fr +\frac{$1}{$2} +endsnippet + +snippet sec +\section*{$1} +endsnippet + +snippet ssec +\subsection*{$1} +endsnippet + +snippet alist +\begin{enumerate}[label=\alph*)] + $1 +\end{enumerate} +endsnippet + +snippet li +\item +endsnippet + +snippet sum +\sum_{$1}^{$2} $3 +endsnippet + +snippet rel +\text{Rel}($1) +endsnippet + +snippet a +\alpha +endsnippet + +snippet e +\epsilon +endsnippet From 68252cdab9640aa21069bb318dff23dcb0bef50a Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 6 May 2020 00:41:32 -0700 Subject: [PATCH 3/3] Add new Markdown plugins --- nvim/.config/nvim/init.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 94ab68c..46735d9 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -14,7 +14,9 @@ Plug 'vim-scripts/avrasm.vim' Plug 'arcticicestudio/nord-vim' +Plug 'junegunn/goyo.vim' Plug 'iamcco/markdown-preview.vim' +Plug 'junegunn/limelight.vim' call plug#end() set exrc " Execute local vimscripts @@ -51,6 +53,8 @@ let g:LanguageClient_rootMarkers = { \ 'elm': ['elm.json'], \ } +let g:limelight_conceal_ctermfg = 8 + colorscheme nord nmap K :call LanguageClient_contextMenu() nmap ? :call LanguageClient_textDocument_hover()