From 9653b8c9368dd1f3934446473b6165e2645b6184 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 12 Oct 2022 16:58:02 +0200 Subject: [PATCH] Remove neovim config for neomutt and markdown --- .../.config/nvim/UltiSnips/markdown.snippets | 101 ------------------ neovim/.config/nvim/init.vim | 28 ----- 2 files changed, 129 deletions(-) delete mode 100644 neovim/.config/nvim/UltiSnips/markdown.snippets diff --git a/neovim/.config/nvim/UltiSnips/markdown.snippets b/neovim/.config/nvim/UltiSnips/markdown.snippets deleted file mode 100644 index 6d2f600..0000000 --- a/neovim/.config/nvim/UltiSnips/markdown.snippets +++ /dev/null @@ -1,101 +0,0 @@ -snippet sign "Signature" -Best regards, - -Amin Kasrou Aouam -endsnippet - -snippet firma "Spanish Signature" -Un saludo, - -Amin Kasrou Aouam -endsnippet - -snippet meta "YAML metadata for eisvogel" ---- -title: "$1" -author: [Amin Kasrou Aouam] -date: "`date +%F`" -titlepage: true -logo: /home/coolneng/Pictures/Logos/UGR.png -listings-no-page-break: true -toc-own-page: true -... - -endsnippet - -snippet hand "YAML metadata for tufte-handout" ---- -documentclass: tufte-handout -title: $1 -author: Amin Kasrou Aouam -date: `date +%F` -fontsize: 12pt -... - -endsnippet - -snippet ass "YAML metadata for assignment" ---- -title: $1 -author: Amin Kasrou Aouam -date: `date +%F` ---- - -endsnippet - -snippet slides "YAML metadata for the Metropolis template" ---- -title: "$1" -author: [Amin Kasrou Aouam] -date: "`date +%F`" -header-includes: - -- \definecolor{dkgreen}{rgb}{0,0.52,0} -- \definecolor{gray}{rgb}{0.5,0.5,0.5} -- \definecolor{mauve}{rgb}{0.4,0,0.7} -- \definecolor{customBlue}{rgb}{0.1,0.1,0.65} -- \definecolor{customOrange}{rgb}{0.88,0.53,0.13} -- \lstset{frame=tb} -- \lstset{language=c} -- \lstset{aboveskip=5mm} -- \lstset{belowskip=5mm} -- \lstset{showstringspaces=false} -- \lstset{columns=flexible} -- \lstset{basicstyle={\scriptsize\ttfamily}} -- \lstset{numbers=left} -- \lstset{numberstyle=\tiny} -- \lstset{stepnumber=1} -- \lstset{numbersep=8pt} -- \lstset{numberstyle=\tiny\color{gray}} -- \lstset{keywordstyle=\color{customBlue}} -- \lstset{commentstyle=\color{dkgreen}} -- \lstset{stringstyle=\color{mauve}} -- \lstset{breaklines=true} -- \lstset{breakatwhitespace=true} -- \lstset{tabsize=4} -... - -endsnippet - -snippet b "Bullet point" - -* $1 -endsnippet - -snippet sl "Slide notes" - -# Slide $1 -endsnippet - -snippet fsl "First slide notes" -# Slide $1 -endsnippet - -snippet se "Section notes" - -# Section $1 -endsnippet - -snippet fse "First section notes" -# Section $1 -endsnippet diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index 351dca9..9242ea8 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -25,19 +25,12 @@ nnoremap n :noh "Move the current line up or down nnoremap k :m-2== nnoremap j :m+== -""Markdown -autocmd Filetype markdown Goyo -let g:markdown_fenced_languages = ['cpp', 'python', 'java', 'sql'] -let g:vim_markdown_math=1 ""Snippets let g:UltiSnipsExpandTrigger = '' let g:UltiSnipsJumpForwardTrigger = '' let g:UltiSnipsJumpBackwardTrigger = '' ""Vim-plug call plug#begin('~/.config/nvim/plugged') -Plug 'plasticboy/vim-markdown', { 'for': 'markdown' } -Plug 'junegunn/goyo.vim', {'for': 'markdown', 'on': 'Goyo' } -Plug 'SirVer/ultisnips', { 'for': 'markdown' } Plug 'Raimondi/delimitMate' Plug 'cocopon/iceberg.vim' Plug 'LnL7/vim-nix' @@ -47,24 +40,3 @@ colorscheme iceberg set termguicolors ""Disabe status line set laststatus=0 -""Set Markdown filetype for neomutt -autocmd BufNewFile,BufRead /tmp/neomutt* set filetype=markdown -""Quit whether Goyo is active or not -function! s:goyo_enter() - let b:quitting = 0 - let b:quitting_bang = 0 - call feedkeys('jk') - autocmd QuitPre let b:quitting = 1 - cabbrev q! let b:quitting_bang = 1 q! -endfunction - -function! s:goyo_leave() - if b:quitting_bang - qa! - else - qa - endif -endfunction - -autocmd! User GoyoEnter nested call goyo_enter() -autocmd! User GoyoLeave nested call goyo_leave()