added neovim init.vim dotfile
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
commit
291e3fc42f
35
.config/nvim/init.vim
Normal file
35
.config/nvim/init.vim
Normal file
@ -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 = "\<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'
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user