|
|
|
@ -7,11 +7,13 @@ Plug 'editorconfig/editorconfig-vim' |
|
|
|
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } |
|
|
|
|
Plug 'junegunn/fzf.vim' |
|
|
|
|
|
|
|
|
|
" LimeLight |
|
|
|
|
Plug 'junegunn/limelight.vim' |
|
|
|
|
|
|
|
|
|
" NERDTree |
|
|
|
|
Plug 'scrooloose/nerdtree' |
|
|
|
|
|
|
|
|
|
" Improvements |
|
|
|
|
Plug 'terryma/vim-multiple-cursors' |
|
|
|
|
" Improvements Plug 'terryma/vim-multiple-cursors' |
|
|
|
|
Plug 'tpope/vim-eunuch' |
|
|
|
|
Plug 'tpope/vim-surround' |
|
|
|
|
Plug 'scrooloose/syntastic' |
|
|
|
@ -31,14 +33,22 @@ Plug 'joshdick/onedark.vim' |
|
|
|
|
" Lang. Support |
|
|
|
|
Plug 'fatih/vim-go' |
|
|
|
|
Plug 'artur-shaik/vim-javacomplete2' |
|
|
|
|
Plug 'Valloric/YouCompleteMe', { 'do': './install.py' } |
|
|
|
|
"Plug 'Valloric/YouCompleteMe', { 'do': './install.py' } |
|
|
|
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } |
|
|
|
|
Plug 'zchee/deoplete-jedi' |
|
|
|
|
Plug 'davidhalter/jedi-vim' |
|
|
|
|
Plug 'rust-lang/rust.vim' |
|
|
|
|
Plug 'preservim/nerdcommenter' |
|
|
|
|
Plug 'mattn/emmet-vim' |
|
|
|
|
|
|
|
|
|
" Code Folding |
|
|
|
|
Plug 'tmhedberg/SimpylFold' |
|
|
|
|
|
|
|
|
|
" Writing |
|
|
|
|
Plug 'junegunn/goyo.vim' |
|
|
|
|
Plug 'lervag/vimtex' |
|
|
|
|
Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' } |
|
|
|
|
" Plug 'conornewton/vim-latex-preview' |
|
|
|
|
|
|
|
|
|
"Zoxide |
|
|
|
|
Plug 'nanotee/zoxide.vim' |
|
|
|
@ -77,8 +87,8 @@ set number relativenumber |
|
|
|
|
colorscheme onedark |
|
|
|
|
set nocompatible |
|
|
|
|
set encoding=UTF-8 |
|
|
|
|
set clipboard+=unnamedplus |
|
|
|
|
|
|
|
|
|
let g:livepreview_previewer = 'zathura' |
|
|
|
|
set mouse=a |
|
|
|
|
" Map Leader |
|
|
|
|
let mapleader = "," |
|
|
|
@ -93,15 +103,40 @@ au BufNewFile ~/vimwiki/diary/*.md :silent 0r !~/.config/nvim/generate-vimwiki-d |
|
|
|
|
|
|
|
|
|
let NERDTreeMapOpenInTab='<ENTER>' |
|
|
|
|
|
|
|
|
|
" Tex |
|
|
|
|
let g:vimtex_complete_enabled = 1 |
|
|
|
|
let g:livepreview_previewer = 'zathura' |
|
|
|
|
autocmd Filetype tex setl updatetime=1 |
|
|
|
|
|
|
|
|
|
" Fzf |
|
|
|
|
let g:fzf_nvim_statusline = 0 " disable statusline overwriting |
|
|
|
|
|
|
|
|
|
"remaps for fzf |
|
|
|
|
nnoremap <silent> <leader><space> :Files<CR> |
|
|
|
|
nnoremap <silent> <leader>w :Windows<CR> |
|
|
|
|
nnoremap <silent> <leader>h :History<CR> |
|
|
|
|
nnoremap <silent> <leader>g<space> :GFiles<CR> |
|
|
|
|
nnoremap <silent> <leader>gs :GFiles?<CR> |
|
|
|
|
|
|
|
|
|
nnoremap <silent> <leader>G<space> :GFiles<CR> |
|
|
|
|
nnoremap <silent> <leader>GS :GFiles?<CR> |
|
|
|
|
|
|
|
|
|
" Easy to update and reload nvim init file |
|
|
|
|
nnoremap <Leader>e :e $MYVIMRC<CR> |
|
|
|
|
nnoremap <Leader>S :source $MYVIMRC<CR> |
|
|
|
|
|
|
|
|
|
" Deoplete |
|
|
|
|
let g:deoplete#enable_at_startup = 1 |
|
|
|
|
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif |
|
|
|
|
let g:jedi#completions_enabled = 0 |
|
|
|
|
let g:jedi#use_splits_not_buffers = "right" |
|
|
|
|
|
|
|
|
|
" Limeligt Binds |
|
|
|
|
nnoremap <Leader>l :Limelight!!<CR> |
|
|
|
|
let g:limelight_conceal_guifg = 'DarkGray' |
|
|
|
|
let g:limelight_conceal_guifg = '#777777' |
|
|
|
|
let g:limelight_conceal_ctermfg = 'gray' |
|
|
|
|
let g:limelight_conceal_ctermfg = 240 |
|
|
|
|
|
|
|
|
|
" <TAB>: completion. |
|
|
|
|
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" |
|
|
|
|
" Switching windows |
|
|
|
|
nnoremap <A-h> <C-w>h |
|
|
|
|
nnoremap <A-j> <C-w>j |
|
|
|
@ -109,12 +144,12 @@ nnoremap <A-k> <C-w>k |
|
|
|
|
nnoremap <A-l> <C-w>l |
|
|
|
|
|
|
|
|
|
" Move tabs |
|
|
|
|
nnoremap <A-J> :tabp<CR> |
|
|
|
|
nnoremap <A-K> :tabn<CR> |
|
|
|
|
nnoremap <A-Down> :tabp<CR> |
|
|
|
|
nnoremap <A-Up> :tabn<CR> |
|
|
|
|
|
|
|
|
|
" Basic cmd commands |
|
|
|
|
nnoremap <A-o> :!touch<Space> |
|
|
|
|
nnoremap <A-e> :tabe<Space> |
|
|
|
|
nnoremap <A-n> :!touch<Space> |
|
|
|
|
nnoremap <A-o> :tabe<Space> |
|
|
|
|
nnoremap <A-v> :vsplit<Space> |
|
|
|
|
|
|
|
|
|
" Screenshot command |
|
|
|
@ -130,7 +165,7 @@ vmap < <gv |
|
|
|
|
vmap > >gv |
|
|
|
|
|
|
|
|
|
" Open NERDTree |
|
|
|
|
nnoremap <leader>n :NERDTreeToggle<CR> |
|
|
|
|
nnoremap <leader>N :NERDTreeToggle<CR> |
|
|
|
|
|
|
|
|
|
" Vimwiki md2html |
|
|
|
|
let g:vimwiki_list = [{ |
|
|
|
|