From 826991ff929a157afa941cd0946475d592c85526 Mon Sep 17 00:00:00 2001 From: Niklas Date: Wed, 17 Feb 2021 17:52:47 +0100 Subject: [PATCH] improved vim config --- .config/nvim/init.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index b22beee..358512c 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -14,12 +14,27 @@ " Set color for dark backgrounds :set background=dark +" Line number +:set number + " tabstop set tabstop=4 set shiftwidth=4 +" Start NERDTree when Vim is started without file arguments. +autocmd StdinReadPre * let s:std_in=1 +autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif + +let g:airline#extensions#tabline#enabled = 1 +let g:airline_powerline_fonts = 1 + call plug#begin('~/.config/nvim/plugged') Plug 'neoclide/coc.nvim', {'branch': 'release'} +Plug 'preservim/nerdtree' +Plug 'ryanoasis/vim-devicons' +Plug 'vim-airline/vim-airline' call plug#end() + +nnoremap :NERDTreeToggle