2020-06-11 20:02:05 +00:00
|
|
|
" _ _ __ ___
|
|
|
|
" | \| |___ __\ \ / (_)_ __
|
|
|
|
" | .` / -_) _ \ V /| | ' \
|
|
|
|
" |_|\_\___\___/\_/ |_|_|_|_|
|
|
|
|
"
|
|
|
|
|
|
|
|
" Required packages:
|
|
|
|
" - neovim (duh)
|
|
|
|
" - neovim-plug-git
|
|
|
|
|
2020-06-11 14:03:12 +00:00
|
|
|
" Set course to a line when exiting nvim
|
|
|
|
:au VimLeave * set guicursor=a:ver1-blinkon0
|
|
|
|
|
|
|
|
" Set color for dark backgrounds
|
|
|
|
:set background=dark
|
|
|
|
|
2021-02-17 16:52:47 +00:00
|
|
|
" Line number
|
|
|
|
:set number
|
|
|
|
|
2020-06-11 14:03:12 +00:00
|
|
|
" tabstop
|
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
|
2021-02-26 15:12:16 +00:00
|
|
|
" yaml indentation
|
|
|
|
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
|
|
|
|
2021-02-17 16:52:47 +00:00
|
|
|
" Start NERDTree when Vim is started without file arguments.
|
|
|
|
autocmd StdinReadPre * let s:std_in=1
|
|
|
|
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
|
|
|
|
|
2021-02-26 15:12:16 +00:00
|
|
|
" Mouse support
|
|
|
|
set mouse=a
|
|
|
|
|
2021-02-17 16:52:47 +00:00
|
|
|
let g:airline#extensions#tabline#enabled = 1
|
|
|
|
let g:airline_powerline_fonts = 1
|
|
|
|
|
2020-06-11 14:03:12 +00:00
|
|
|
call plug#begin('~/.config/nvim/plugged')
|
|
|
|
|
|
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
2021-02-17 16:52:47 +00:00
|
|
|
Plug 'preservim/nerdtree'
|
|
|
|
Plug 'ryanoasis/vim-devicons'
|
|
|
|
Plug 'vim-airline/vim-airline'
|
2020-06-11 14:03:12 +00:00
|
|
|
|
|
|
|
call plug#end()
|
2021-02-17 16:52:47 +00:00
|
|
|
|
|
|
|
nnoremap <C-b> :NERDTreeToggle<CR>
|
2021-02-26 15:12:16 +00:00
|
|
|
|
|
|
|
nnoremap <C-l> :bnext<CR>
|
|
|
|
nnoremap <C-h> :bprevious<CR>
|