syntax on filetype indent on let mapleader="½" set encoding=utf-8 set clipboard=unnamed set clipboard+=unnamedplus set smartindent set shiftwidth=2 set tabstop=2 set expandtab set autoread set hidden set termguicolors set background=dark set rtp^=/usr/share/vim/vimfiles/ set undodir=~/.local/share/nvim/undodir set undofile set colorcolumn=80 set foldmethod=syntax set foldlevelstart=20 set number set relativenumber "Plugins call plug#begin('~/.local/share/nvim/plugged') " Colorschemes Plug 'arcticicestudio/nord-vim' " Pretty Status Lines Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' " Completion Plug 'honza/vim-snippets' Plug 'epilande/vim-react-snippets' Plug 'neoclide/coc.nvim', {'branch': 'release'} " Pretty parenthesis Plug 'luochen1990/rainbow' " File handling Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' " Python Plug 'numirias/semshi' Plug 'w0rp/ale' Plug 'ambv/black' " HTML Plug 'jonsmithers/vim-html-template-literals' Plug 'mxw/vim-jsx' Plug 'pangloss/vim-javascript' Plug 'alvan/vim-closetag' " Testing Plug 'janko/vim-test' " Editing Plug 'tpope/vim-surround' " Git Plug 'airblade/vim-gitgutter' call plug#end() " Colorscheme and Theming colorscheme nord "Airline if !exists('g:airline_symbols') let g:airline_symbols = {} endif let g:airline#extensions#tabline#enabled = 0 let g:airline_theme='nord' let g:airline_symbols.maxlinenr = '' " BufExplorer nnoremap :BufExplorerVerticalSplit nnoremap :bn nnoremap :bp " CoC nmap gd (coc-definition) nmap gy (coc-type-definition) nmap gi (coc-implementation) nmap gr (coc-references) inoremap coc#refresh() " Testing nmap :TestNearest nmap t :TestNearest nmap :TestFile nmap t :TestFile nmap t :TestSuite nmap t :TestLast nmap t :TestVisit " Syntastic let g:syntastic_python_checkers = ['python'] "Rainbow Parentheses let g:rainbow_active = 1 " HTML let g:closetag_filenames = '*.html,*.js' let g:html_indent_style1 = "inc" " Black autocmd BufWritePre *.py execute ':Black' " FZF let $FZF_DEFAULT_COMMAND = 'ag --ignore .git --ignore-dir Customers/RP --ignore *.jar -g ""' command! -bang -nargs=? -complete=dir HFiles \ call fzf#vim#files(, {'source': 'ag --hidden --ignore .git --ignore-dir Customers/RP --ignore *.jar -g ""'}, 0) map :Files map :HFiles map :Buffers " Mappings :vmap r "_dP :nmap :w :imap :wa :nmap :bd nnoremap nnoremap nnoremap nnoremap nmap gs :GFiles? nmap gn (GitGutterNextHunk) " git next nmap gp (GitGutterPrevHunk) " git previous nmap ga (GitGutterStageHunk) " git add (chunk) nmap gu (GitGutterUndoHunk) " git undo (chunk) "AutoCommands au FileType json setlocal equalprg=jq\ . au FileType xml setlocal equalprg=xmllint\ --format\ --recover\ -\ 2>/dev/null autocmd FileType python setlocal completeopt-=preview