Created
November 29, 2020 23:29
-
-
Save seveibar/c9604218d7be5400010b526ac5fd143b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set runtimepath^=~/.vim runtimepath+=~/.vim/after | |
let &packpath=&runtimepath | |
source ~/.vimrc | |
call plug#begin("~/.vim/plugged") | |
" Plugin Section | |
Plug 'dracula/vim' | |
Plug 'scrooloose/nerdtree' | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'junegunn/fzf.vim' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
let g:coc_global_extensions = ['coc-css', 'coc-html', 'coc-json', 'coc-prettier', 'coc-tsserver', 'coc-tabnine'] | |
Plug 'leafgarland/typescript-vim' | |
Plug 'peitalin/vim-jsx-typescript' | |
call plug#end() | |
"Config Section | |
if (has("termguicolors")) | |
set termguicolors | |
endif | |
syntax enable | |
colorscheme dracula | |
let g:NERDTreeShowHidden = 1 | |
let g:NERDTreeMinimalUI = 1 | |
let g:NERDTreeIgnore = [] | |
let g:NERDTreeStatusline = '' | |
" Automaticaly close nvim if NERDTree is only thing left open | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
" Toggle | |
nnoremap <silent> <C-b> :NERDTreeToggle<CR> | |
nnoremap <C-p> :FZF<CR> | |
let $FZF_DEFAULT_COMMAND = 'ag -g ""' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment