From 1054474e3744c1f77d749ea7f260cd25384b0c59 Mon Sep 17 00:00:00 2001 From: Tine Jozelj Date: Sun, 21 Mar 2021 13:13:37 +0100 Subject: [PATCH] improvements --- vim/vimrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index 856fc69..0f7f623 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -37,7 +37,8 @@ call plug#end() let g:coc_global_extensions = [ \ 'coc-tsserver', \ 'coc-prettier', - \ 'coc-yaml' + \ 'coc-yaml', + \ 'coc-json' \ ] if isdirectory('./node_modules') && isdirectory('./node_modules/prettier') @@ -77,6 +78,11 @@ if exists('##TextYankPost') endif "--- VIM Configuration +"- NERDTree +" 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 + "- Keybindings let g:ctrlp_map = '' let g:ctrlp_cmd = 'CtrlP' @@ -84,6 +90,7 @@ let g:ctrlp_cmd = 'CtrlP' "- Visuals set number set cursorline +set signcolumn=yes colorscheme onehalflight let g:airline_theme = 'onehalflight'