From efb90a6689fda27ff56f0321e59bfc3438a4e89c Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Fri, 27 Aug 2021 01:26:50 +0200 Subject: [PATCH] Vim: Use sonokai colorscheme --- roles/dotfiles/files/tmux.conf | 3 ++- roles/dotfiles/files/vimrc | 25 ++++++++++++++++++++----- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/roles/dotfiles/files/tmux.conf b/roles/dotfiles/files/tmux.conf index cbddd5e..a23cb77 100644 --- a/roles/dotfiles/files/tmux.conf +++ b/roles/dotfiles/files/tmux.conf @@ -35,5 +35,6 @@ set-window-option -g window-status-style fg=colour239,bg=default # bell set-window-option -g window-status-bell-style fg=colour232,bg=colour253 -# Correct colors, NOTE you also need to alias tmux as `tmux -2` +# Correct colors set -g default-terminal "tmux-256color" +set -ga terminal-overrides ",*256col*:Tc" diff --git a/roles/dotfiles/files/vimrc b/roles/dotfiles/files/vimrc index 2640719..5b78943 100644 --- a/roles/dotfiles/files/vimrc +++ b/roles/dotfiles/files/vimrc @@ -3,7 +3,6 @@ set colorcolumn=80 set background=dark set cursorline syntax on -colorscheme monokai " python au BufNewFile,BufRead *.py,*.go set tabstop=4 softtabstop=4 shiftwidth=4 @@ -28,20 +27,36 @@ Plug 'junegunn/fzf.vim' Plug 'luochen1990/rainbow' Plug 'psf/black' " Themes -Plug 'crusoexia/vim-monokai' +Plug 'sainnhe/sonokai' " Language specific -Plug 'vim-python/python-syntax' +Plug 'sheerun/vim-polyglot' +"Plug 'vim-python/python-syntax' call plug#end() -" Preconditions for plugins -" ale: apt install pylint flake8 + +" Theme +if has('termguicolors') + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" + set termguicolors +endif +"let g:sonokai_style = 'shusia' +let g:sonokai_enable_italic = 1 +let g:sonokai_disable_italic_comment = 1 +colorscheme sonokai +let g:airline_theme = 'sonokai' " Ale let g:ale_linters = {'python': ['flake8', 'pylint'],} let g:ale_fixers = {} let g:ale_fixers.python = ['black'] +" Black let g:black_linelength = 80 +" ycm +let g:ycm_autoclose_preview_window_after_insertion = 1 +let g:ycm_autoclose_preview_window_after_completion = 1 + " NERDTREE " open nerdtree when no file is specified on startup autocmd StdinReadPre * let s:std_in=1