From 450ac30a23069920841f3236e982c399851a96ad Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 11 Jun 2020 11:20:12 +0800 Subject: [PATCH] [feature] add gruvbox colortheme --- config/nvim/coc-settings.json | 3 ++- config/nvim/init.vim | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/config/nvim/coc-settings.json b/config/nvim/coc-settings.json index a28de70..f5abb30 100644 --- a/config/nvim/coc-settings.json +++ b/config/nvim/coc-settings.json @@ -1,4 +1,5 @@ { "npm.binPath": "yarn", - "python.linting.flake8Enabled": true + "python.linting.flake8Enabled": true, + "explorer.icon.enableNerdfont": true } diff --git a/config/nvim/init.vim b/config/nvim/init.vim index 5315707..f2eba55 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -13,6 +13,7 @@ set nobackup set hlsearch set noswapfile set ignorecase +set fillchars=vert:\ ,fold:- filetype plugin indent on syntax on cnoremap @@ -70,6 +71,7 @@ Plug 'tpope/vim-fugitive' " git 功能 Plug 'scrooloose/nerdcommenter' Plug 'ctrlpvim/ctrlp.vim' Plug 'mhinz/vim-grepper', { 'on': ['Grepper', '(GrepperOperator)'] } +Plug 'morhetz/gruvbox' call plug#end() @@ -82,13 +84,14 @@ nmap gr (coc-references) xmap fs (coc-format-selected) nmap fs (coc-format-selected) nmap fb (coc-format) -nmap sd :call CocAction('doHover') nmap rn (coc-rename) nmap ne (coc-diagnostic-next-error) nmap pe (coc-diagnostic-prev-error) nmap fe :CocCommand explorer --toggle nmap if :CocInfo nmap cl :CocList +nmap sd :call CocAction('doHover') +nmap ss :call CocAction('showSignatureHelp') nmap ol (coc-openlink) nnoremap sg :Grepper -tool git nnoremap sc :Grepper -tool grep @@ -103,3 +106,9 @@ nnoremap gd :Gdiff " ==== ctrlp configuration ==== let g:ctrlp_user_command = ['.git', 'git ls-files -co --exclude-standard'] + + +" ==== gruvbox configuration ==== +color gruvbox +set background=dark +highlight Normal ctermbg=None