commit 291e3fc42fdf5cd9182b6561e888c7e546b0926a Author: Louis Vallat Date: Wed Apr 14 11:15:24 2021 +0200 added neovim init.vim dotfile Signed-off-by: Louis Vallat diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..dd8e976 --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,35 @@ +set number relativenumber + +augroup numbertoggle + autocmd! + autocmd BufEnter,FocusGained,InsertLeave * set relativenumber + autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber +augroup END + +" https://stackoverflow.com/a/1878983 +set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab + +set pyxversion=3 +set colorcolumn=80 + +if exists('+termguicolors') + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" + set termguicolors +endif + +call plug#begin('~/.vim/plugged') + +Plug 'sonph/onehalf', { 'rtp': 'vim' } +Plug 'neoclide/coc.nvim', {'branch': 'release'} +Plug 'norcalli/nvim-colorizer.lua' +Plug 'vim-airline/vim-airline' +Plug 'vim-airline/vim-airline-themes' + +call plug#end() + +colorscheme onehalfdark + +source $HOME/.config/nvim/plug-config/coc.vim +source $HOME/.config/nvim/plug-config/airline.vim +