dotfiles/.config/nvim/init.vim

34 lines
780 B
VimL
Raw Normal View History

set number relativenumber
augroup numbertoggle
autocmd!
autocmd BufEnter,InsertLeave * set relativenumber
autocmd BufLeave,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 = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[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'
call plug#end()
colorscheme onehalfdark
source $HOME/.config/nvim/plug-config/coc.vim
source $HOME/.config/nvim/plug-config/airline.vim