call plug#begin('~/.config/nvim/plugged') Plug 'preservim/NERDTree' Plug 'majutsushi/tagbar' Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf' Plug 'Shougo/neocomplete.vim' " Display indents Plug 'yggdroot/indentline' Plug 'Townk/vim-autoclose' Plug 'vim-syntastic/syntastic' Plug 'yuezk/vim-js' " Autocompletion Plug 'neoclide/coc.nvim', {'branch': 'release'} " Replacement for coc.vim (auto complete) " Plug 'ycm-core/YouCompleteMe' Plug 'vim-airline/vim-airline' Plug 'Xuyuanp/nerdtree-git-plugin' Plug 'ctrlpvim/ctrlp.vim' Plug 'ryanoasis/vim-devicons' " Vue syntax highlighter Plug 'posva/vim-vue' " Grep utility for whole project Plug 'jremmen/vim-ripgrep' " Git integration Plug 'tpope/vim-fugitive' Plug 'gko/vim-coloresque' " Ctrl-z tree still history manager Plug 'mbbill/undotree' " Python auto completion engine Plug 'davidhalter/jedi-vim' " LaTeX plugin Plug 'lervag/vimtex' call plug#end() " autocmd vimenter * NERDTree | wincmd w map :NERDTreeToggle 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 source ~/.config/nvim/coc.vim let g:ctrlp_custom_ignore = 'node_modules\|DS_Store' let mapleader = " " nnoremap h :wincmd h nnoremap j :wincmd j nnoremap k :wincmd k nnoremap l :wincmd l nnoremap u :UndotreeToggle nnoremap ps :Rg nnoremap 1 1gt nnoremap 2 2gt nnoremap 3 3gt nnoremap 4 4gt nnoremap 5 5gt nnoremap 6 6gt nnoremap 7 7gt nnoremap 8 8gt nnoremap 9 9gt nnoremap 0 10gt " Add folding shortcuts and settings set foldmethod=indent set foldnestmax=10 set nofoldenable set foldlevel=99 set signcolumn=no " indentline configs let g:indentLine_enabled = 1 let g:indentLine_char_list = ['|', '¦', '┆', '┊'] let g:indentLine_setColors = 1 let g:indentLine_color_gui = "#5C6370" let g:indentLine_showFirstIndentLevel = 1 " vimtex settings let g:tex_flavor = 'latex' let g:vimtex_view_method = 'zathura' let g:vimtex_compiler_latexmk = { \'build_dir': 'build', \} let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum"