feat: make it cleaner

This commit is contained in:
Tine Jozelj 2021-04-11 13:50:44 +02:00
parent 0f5e3d1921
commit ce2409ddf1

View file

@ -1,5 +1,5 @@
" Install vim-plug if not found " Install vim-plug if not found
if empty(glob('~/.vim/autoload/plug.vim')) if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif endif
@ -15,6 +15,7 @@ call plug#begin('~/.vim/plugged')
" General " General
Plug 'ojroques/vim-oscyank' Plug 'ojroques/vim-oscyank'
Plug 'tpope/vim-obsession' Plug 'tpope/vim-obsession'
Plug 'tmux-plugins/vim-tmux-focus-events'
" Look " Look
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'sonph/onehalf', { 'rtp': 'vim' } Plug 'sonph/onehalf', { 'rtp': 'vim' }
@ -48,7 +49,7 @@ let g:coc_global_extensions = [
\ 'coc-yaml', \ 'coc-yaml',
\ 'coc-json', \ 'coc-json',
\ 'coc-git', \ 'coc-git',
\ 'coc-pyright' \ 'coc-pyright'
\ ] \ ]
if isdirectory('./node_modules') && isdirectory('./node_modules/prettier') if isdirectory('./node_modules') && isdirectory('./node_modules/prettier')
let g:coc_global_extensions += ['coc-prettier'] let g:coc_global_extensions += ['coc-prettier']
@ -127,9 +128,10 @@ set incsearch " search as you type
set ignorecase set ignorecase
set smartcase set smartcase
set mouse=a set mouse=a
set ttymouse=sgr
set spell spelllang=en_us set spell spelllang=en_us
set updatetime=300 set updatetime=300
set cmdheight=2 set cmdheight=1
set hidden set hidden
set shortmess+=c set shortmess+=c
@ -168,4 +170,17 @@ set cursorline
set hlsearch " highlight all results set hlsearch " highlight all results
set signcolumn=yes " always show git diff column set signcolumn=yes " always show git diff column
colorscheme onehalflight colorscheme onehalflight
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_symbols.branch = ''
let g:airline_symbols.dirty=' '
let g:airline_symbols.linenr = '☰ '
let g:airline_symbols.maxlinenr = ' '
let g:airline_left_sep=''
let g:airline_right_sep=''
let g:airline_detect_spell=0
let g:airline#parts#ffenc#skip_expected_string='utf-8[unix]'
let g:airline_theme = 'onehalflight' let g:airline_theme = 'onehalflight'