2020-07-24 18:55:27 +00:00
|
|
|
call plug#begin('~/.config/nvim/plugged')
|
2020-06-28 15:49:52 +00:00
|
|
|
Plug 'preservim/NERDTree'
|
|
|
|
Plug 'majutsushi/tagbar'
|
|
|
|
Plug 'junegunn/fzf.vim'
|
|
|
|
Plug 'junegunn/fzf'
|
|
|
|
Plug 'Shougo/neocomplete.vim'
|
|
|
|
|
2020-08-01 20:37:32 +00:00
|
|
|
" Display indents
|
|
|
|
Plug 'yggdroot/indentline'
|
|
|
|
|
2020-06-28 15:49:52 +00:00
|
|
|
Plug 'Townk/vim-autoclose'
|
|
|
|
Plug 'vim-syntastic/syntastic'
|
|
|
|
Plug 'maksimr/vim-jsbeautify'
|
|
|
|
|
2020-07-24 18:57:55 +00:00
|
|
|
" Autocompletion
|
|
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
|
|
|
2020-06-28 15:49:52 +00:00
|
|
|
" Replacement for coc.vim (auto complete)
|
2020-07-24 18:57:55 +00:00
|
|
|
" Plug 'ycm-core/YouCompleteMe'
|
2020-06-28 15:49:52 +00:00
|
|
|
|
|
|
|
Plug 'vim-airline/vim-airline'
|
|
|
|
Plug 'Xuyuanp/nerdtree-git-plugin'
|
|
|
|
Plug 'ctrlpvim/ctrlp.vim'
|
|
|
|
Plug 'ryanoasis/vim-devicons'
|
|
|
|
|
2020-07-24 18:56:58 +00:00
|
|
|
" Vue syntax highlighter
|
2020-08-01 20:37:32 +00:00
|
|
|
Plug 'posva/vim-vue'
|
2020-07-24 18:56:58 +00:00
|
|
|
|
2020-06-28 15:49:52 +00:00
|
|
|
" Grep utility for whole project
|
|
|
|
Plug 'jremmen/vim-ripgrep'
|
|
|
|
" Git integration
|
|
|
|
Plug 'tpope/vim-fugitive'
|
|
|
|
|
2020-07-24 18:56:58 +00:00
|
|
|
Plug 'gko/vim-coloresque'
|
2020-06-28 15:49:52 +00:00
|
|
|
" Ctrl-z tree still history manager
|
|
|
|
Plug 'mbbill/undotree'
|
|
|
|
|
|
|
|
" Python auto completion engine
|
|
|
|
Plug 'davidhalter/jedi-vim'
|
2020-07-24 18:56:58 +00:00
|
|
|
|
2020-06-28 15:49:52 +00:00
|
|
|
call plug#end()
|
|
|
|
|
|
|
|
" autocmd vimenter * NERDTree | wincmd w
|
|
|
|
map <C-b> :NERDTreeToggle<CR>
|
|
|
|
autocmd BufEnter * lcd %:p:h
|
|
|
|
let g:NERDTreeChDirMode = 3
|
|
|
|
|
|
|
|
syntax on
|
|
|
|
|
|
|
|
set noerrorbells
|
|
|
|
filetype plugin indent on
|
|
|
|
" show existing tab with 4 spaces width
|
|
|
|
set tabstop=4 softtabstop=4
|
|
|
|
" when indenting with '>', use 4 spaces width
|
|
|
|
set shiftwidth=4
|
|
|
|
" on pressng tab, insert 4 spaces
|
|
|
|
set expandtab
|
|
|
|
set smartindent
|
|
|
|
set nu
|
|
|
|
set nowrap
|
|
|
|
set smartcase
|
|
|
|
set noswapfile
|
|
|
|
set nobackup
|
|
|
|
set undodir=~/.config/nvim/undodir
|
|
|
|
set undofile
|
|
|
|
set incsearch
|
|
|
|
|
|
|
|
set splitright
|
|
|
|
set splitbelow
|
|
|
|
|
|
|
|
" rg smart root founder and adds git ingore loading for faster execution
|
|
|
|
if executable('rg')
|
|
|
|
let g:rg_derive_root="true"
|
|
|
|
endif
|
|
|
|
|
|
|
|
" let g:airline_powerline_fonts = 1
|
|
|
|
|
2020-07-24 18:57:55 +00:00
|
|
|
source ~/.config/nvim/coc.vim
|
2020-06-28 15:49:52 +00:00
|
|
|
|
|
|
|
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store'
|
|
|
|
let mapleader = " "
|
|
|
|
|
|
|
|
nnoremap <leader>h :wincmd h<CR>
|
|
|
|
nnoremap <leader>j :wincmd j<CR>
|
|
|
|
nnoremap <leader>k :wincmd k<CR>
|
|
|
|
nnoremap <leader>l :wincmd l<CR>
|
|
|
|
nnoremap <leader>u :UndotreeToggle<CR>
|
|
|
|
nnoremap <leader>ps :Rg<SPACE>
|
|
|
|
|
|
|
|
" Add folding shortcuts and settings
|
|
|
|
set foldmethod=indent
|
|
|
|
set foldnestmax=10
|
|
|
|
set nofoldenable
|
|
|
|
set foldlevel=99
|
2020-07-27 09:26:35 +00:00
|
|
|
|
|
|
|
" indentline configs
|
|
|
|
let g:indentLine_enabled = 1
|
2020-08-01 20:37:32 +00:00
|
|
|
let g:indentLine_char_list = ['|', '¦', '┆', '┊']
|
2020-07-27 09:26:35 +00:00
|
|
|
let g:indentLine_setColors = 1
|
|
|
|
let g:indentLine_color_gui = "#5C6370"
|
|
|
|
let g:indentLine_showFirstIndentLevel = 1
|