From 0e1c7c11d58e86a5a738a025e1afb69596f4d9b2 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 14 May 2022 10:29:07 -0500 Subject: Add more dotfiles --- src/configs/shared/nvim/init.vim | 79 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 src/configs/shared/nvim/init.vim (limited to 'src/configs/shared/nvim/init.vim') diff --git a/src/configs/shared/nvim/init.vim b/src/configs/shared/nvim/init.vim new file mode 100644 index 0000000..09aca69 --- /dev/null +++ b/src/configs/shared/nvim/init.vim @@ -0,0 +1,79 @@ +" Flash screen instead of beep sound +set visualbell + +" Change how vim represents characters on the screen +set encoding=utf-8 + +" Set the encoding of files written +set fileencoding=utf-8 + +" Set line numbers +set number + +" don't break up words at end of window width +set linebreak + +" Specify different areas of the screen where splits should occur +set splitbelow +set splitright + +" Python-specific whitespace file settings +autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 +" ts - show existing tab with 4 spaces width +" sw - when indenting with '>', use 4 spaces width +" sts - control and keys to match tabstop + +" General whitespace settings +set shiftwidth=4 +filetype plugin indent on + +" Allow backspace to delete indentation and inserted text +" i.e. how it works in most programs +set backspace=indent,eol,start +" indent allow backspacing over autoindent +" eol allow backspacing over line breaks (join lines) +" start allow backspacing over the start of insert; CTRL-W and CTRL-U +" stop once at the start of insert. + +call plug#begin("$HOME/.config/nvim/plugged") + +" Auto complete +Plug 'Valloric/YouCompleteMe' + +" Fuzzy finder +Plug 'junegunn/fzf' + +" Git gutter +Plug 'airblade/vim-gitgutter' + +" Status bar +Plug 'vim-airline/vim-airline' + +" Git wrapper with :G +Plug 'tpope/vim-fugitive' + +" Editorconfig file support +Plug 'editorconfig/editorconfig-vim' + +" Theme +Plug 'sainnhe/everforest' + +call plug#end() + +if has('termguicolors') + set termguicolors +endif + +set background=dark + +" Set contrast. +" This configuration option should be placed before `colorscheme everforest`. +" Available values: 'hard', 'medium'(default), 'soft' +let g:everforest_background = 'soft' +let g:everforest_better_performance = 1 +let g:everforest_disable_italic_comment = 1 +syntax on +colorscheme everforest + +let g:airline_theme = 'everforest' + -- cgit v1.2.3