From 5790bb6b724d5dcf811e65f427c849e9561f96f4 Mon Sep 17 00:00:00 2001 From: M1dgard Date: Sun, 19 Aug 2018 01:17:27 +0200 Subject: [PATCH] [nvim] Change color theme to "one", enable spell --- nvim-init.vim | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/nvim-init.vim b/nvim-init.vim index 066719f..2810ba1 100644 --- a/nvim-init.vim +++ b/nvim-init.vim @@ -10,7 +10,7 @@ set mouse=a " enable mouse selection set splitright " open new splits on the right set splitbelow " open new splits below set scrolloff=4 " keep the cursor 4 lines away from the top/bottom -set ruler " show the lines/% bottomright +set ruler " show the lines/% bottom right set showcmd " show the commands while typing set laststatus=2 " always show the status line set encoding=utf-8 " set default encoding @@ -149,12 +149,6 @@ inoremap aahl ⇔ | inoremap aalh ⇔ nnoremap v nnoremap v -" Color settings {{{2 -" Decent color schemes: ron, delek, peachpuff, slate, murphy, elflord, desert -source /usr/share/nvim/runtime/colors/ron.vim -highlight LineNr ctermfg=08 ctermbg=None -highlight link Whitespace Conceal - " Adding modeline {{{2 " Append modeline after last line in buffer. " Use substitute() instead of printf() to handle '%%s' modeline in LaTeX @@ -167,9 +161,15 @@ function! AppendModeline() endfunction nnoremap ml :call AppendModeline() +" Spell check {{{2 +" ================ +set spell +set spelllang=en_us,nl +set spellfile=$HOME/.local/share/nvim/spellfile.utf-8.add -" Plugins {{{1 -" ============ + +" Plug-ins {{{1 +" ============= " Plug {{{2 " ------------ @@ -177,6 +177,7 @@ call plug#begin('~/.config/nvim/plug') " Colors "Plug 'chriskempson/base16-vim' + Plug 'rakr/vim-one' " Language support Plug 'sheerun/vim-polyglot' " color, indentation support for 100+ languages @@ -238,6 +239,16 @@ call plug#begin('~/.config/nvim/plug') call plug#end()" +" One {{{2 +" -------- +set termguicolors +set cursorline +let g:one_allow_italics = 1 +colorscheme one +set background=dark +hi Normal guibg=NONE +hi SpellBad guibg=NONE +hi link Whitespace Conceal " Haskell {{{2 " ------------ @@ -472,7 +483,7 @@ let g:gutentags_cache_dir = '~/.cache/gutentag' " Airline {{{2 " ------------ let g:airline_powerline_fonts=1 -let g:airline_theme='minimalist' +let g:airline_theme='one' let g:airline#extensions#ycm#enabled=1 let g:airline#extensions#tabline#enabled=1 let g:airline#extensions#ale#enabled=1