From 080122ada81f025b0d762f4ed8f241920da8c2c7 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Fri, 13 Nov 2020 15:16:32 -0500 Subject: added vim surround after pain --- nvim/.config/nvim/init.vim | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'nvim') diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index f7e8d31..21781f6 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -7,7 +7,6 @@ if empty(glob('~/.config/nvim/autoload/plug.vim')) endif call plug#begin('~/.config/nvim/autoload/plugged') -"call plug#begin() Plug 'ncm2/ncm2' Plug 'roxma/nvim-yarp' Plug 'ncm2/ncm2-bufword' @@ -21,8 +20,10 @@ call plug#begin('~/.config/nvim/autoload/plugged') Plug 'itchyny/lightline.vim' Plug 'airblade/vim-gitgutter' Plug 'raimondi/delimitmate' - Plug 'pearofducks/ansible-vim' - Plug 'nathanielc/vim-tickscript' + Plug 'luochen1990/rainbow' + Plug 'sheerun/vim-polyglot' + Plug 'tpope/vim-surround' + Plug 'mcchrish/nnn.vim' call plug#end() " Some basics: @@ -62,7 +63,7 @@ call plug#end() " Saving view folds - au BufWinLeave * mkview + "au BufWinLeave * mkview " Spell-check set to F6: map :setlocal spell! spelllang=en_ca @@ -162,6 +163,17 @@ call plug#end() let g:UltiSnipsRemoveSelectModeMappings = 0 " Turns off highlighting on the bits of code that are changed, so the line that is changed is highlighted but the actual text that has changed stands out on the line and is readable. -if &diff - highlight! link DiffText MatchParen -endif + if &diff + highlight! link DiffText MatchParen + endif + +" vim rainbow + let g:rainbow_active = 1 + +" nnn + let g:nnn#layout = { 'window': { 'width': 0.9, 'height': 0.6, 'highlight': 'Debug' } } + let g:nnn#action = { + \ '': 'tab split', + \ '': 'split', + \ '': 'vsplit' } + -- cgit v1.2.3