2021-08-11 19:09:19 +02:00
|
|
|
set nocompatible
|
|
|
|
|
filetype off
|
2022-01-14 16:51:42 +01:00
|
|
|
call plug#begin("~/.config/nvim/plugged")
|
|
|
|
|
Plug 'tpope/vim-fugitive'
|
|
|
|
|
Plug 'vim-airline/vim-airline'
|
|
|
|
|
Plug 'vim-airline/vim-airline-themes'
|
|
|
|
|
Plug 'scrooloose/nerdcommenter'
|
|
|
|
|
"Plug 'ervandew/supertab'
|
|
|
|
|
Plug 'javier-lopez/sprunge.vim'
|
|
|
|
|
Plug 'vim-scripts/Trailer-Trash'
|
|
|
|
|
Plug 'vim-scripts/bad-whitespace'
|
|
|
|
|
Plug 'alvan/vim-closetag'
|
|
|
|
|
Plug 'aklt/plantuml-syntax'
|
|
|
|
|
Plug 'danro/rename.vim'
|
|
|
|
|
Plug 'ciaranm/detectindent'
|
|
|
|
|
Plug 'jiangmiao/auto-pairs'
|
|
|
|
|
Plug 'antoyo/vim-licenses'
|
|
|
|
|
Plug 'altercation/vim-colors-solarized'
|
|
|
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
|
|
|
call plug#end()
|
2021-08-11 19:09:19 +02:00
|
|
|
filetype plugin indent on
|
|
|
|
|
" to ignore plugin indent changes, instead use:
|
|
|
|
|
"filetype plugin on
|
|
|
|
|
|
|
|
|
|
""" General
|
|
|
|
|
" indentation
|
|
|
|
|
set tabstop=4 " tabs only count for 4 spaces
|
|
|
|
|
set shiftwidth=4 " when indenting use 4 spaces
|
|
|
|
|
set noexpandtab " use tab characters
|
|
|
|
|
set autoindent
|
|
|
|
|
|
|
|
|
|
" view
|
|
|
|
|
set number
|
|
|
|
|
set showmatch " show matching bracket
|
|
|
|
|
set incsearch " search as characters are typed
|
|
|
|
|
set hlsearch " highlight found matches
|
|
|
|
|
set incsearch nohlsearch " turn off hightlight after search
|
|
|
|
|
set wrap
|
|
|
|
|
set linebreak
|
|
|
|
|
set nolist " disable line break on wrap
|
|
|
|
|
|
|
|
|
|
" folding
|
|
|
|
|
set foldmethod=syntax
|
|
|
|
|
set foldlevel=0
|
|
|
|
|
set foldnestmax=1
|
|
|
|
|
|
2022-01-14 16:51:42 +01:00
|
|
|
" CoC settings
|
|
|
|
|
"inoremap <silent><expr> <TAB>
|
|
|
|
|
"\ pumvisible() ? "\<C-n>" :
|
|
|
|
|
"\ <SID>check_back_space() ? "\<TAB>" :
|
|
|
|
|
"\ coc#refresh()
|
|
|
|
|
"inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
|
|
|
|
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
|
|
|
|
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
|
|
|
|
|
2021-08-11 19:09:19 +02:00
|
|
|
" syntax highlighting
|
|
|
|
|
syntax on
|
|
|
|
|
set background=dark
|
|
|
|
|
colorscheme solarized
|
|
|
|
|
|
2021-08-25 11:17:22 +02:00
|
|
|
""" Project-Specific Settings
|
|
|
|
|
" Brigham projects
|
|
|
|
|
augroup AgTech
|
|
|
|
|
au BufRead,BufEnter /home/nicolas/dev/C++/AgTech/* set expandtab tabstop=2 shiftwidth=2
|
|
|
|
|
augroup END
|
|
|
|
|
|
2021-08-11 19:09:19 +02:00
|
|
|
""" key remapping
|
|
|
|
|
" cursor navigation
|
|
|
|
|
"nmap j gj
|
|
|
|
|
"nmap k gk
|
|
|
|
|
"vmap j gj
|
|
|
|
|
"vmap k gk
|
|
|
|
|
|
|
|
|
|
" tab navigation
|
2021-08-25 11:02:16 +02:00
|
|
|
nmap <S-J> :tabn<CR>
|
|
|
|
|
nmap <S-K> :tabp<CR>
|
2021-08-11 19:09:19 +02:00
|
|
|
|
|
|
|
|
" Rust
|
|
|
|
|
let g:rust_recommended_style = 0 " disable retarded option
|
|
|
|
|
|
|
|
|
|
""" plugin settings
|
|
|
|
|
" airline
|
|
|
|
|
let g:airline#extensions#tabline#enabled = 1 " enable tabline
|
|
|
|
|
let g:airline_theme='luna'
|
|
|
|
|
if !exists('g:airline_symbols')
|
|
|
|
|
let g:airline_symbols = {}
|
|
|
|
|
endif
|
|
|
|
|
let g:airline_left_sep = ''
|
|
|
|
|
let g:airline_left_alt_sep = ''
|
|
|
|
|
let g:airline_right_sep = ''
|
|
|
|
|
let g:airline_right_alt_sep = ''
|
|
|
|
|
let g:airline_symbols.branch = ''
|
|
|
|
|
let g:airline_symbols.readonly = ''
|
|
|
|
|
let g:airline_symbols.linenr = ''
|
|
|
|
|
let g:airline_symbols.notexists = '∄'
|
|
|
|
|
let g:airline_symbols.spell = 'Ꞩ'
|
|
|
|
|
let g:airline_symbols.whitespace = 'Ξ'
|
|
|
|
|
let g:airline#extensions#whitespace#mixed_indent_algo = 2
|
|
|
|
|
let g:airline#extensions#whitespace#checks = [ 'indent', 'long']
|
|
|
|
|
|
|
|
|
|
" vim-licenses
|
|
|
|
|
let g:licenses_copyright_holders_name = 'Ortega Froysa, Nicolás <nicolas@ortegas.org>'
|
|
|
|
|
let g:licenses_authors_name = 'Ortega Froysa, Nicolás <nicolas@ortegas.org>'
|
|
|
|
|
let g:licenses_default_command = [ 'Affero' ]
|