Created
April 28, 2021 16:29
-
-
Save reccanti/43ec47db520f3c4e4515fa1ebe5f9129 to your computer and use it in GitHub Desktop.
Configuration for Neovim!
This file contains 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
"This setup requires both 'Neovim' and 'vim-plug' to be | |
"installed for it to work. Read the docs to figure out how | |
"to do that! I'm not going to include links in case they | |
"get stale. Once you've done that, source this file and run | |
":PlugInstall to get everything working! | |
" | |
"~reccanti 4/27/2021 | |
call plug#begin('~/.vim/plugged') | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'joshdick/onedark.vim' | |
Plug 'scrooloose/nerdtree' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'dense-analysis/ale' | |
Plug 'tpope/vim-fugitive' | |
Plug 'mhinz/vim-signify' | |
call plug#end() | |
"Configuration for FZF" | |
let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.5, 'highlight': 'Comment' } } | |
"Configure ALE for linting and fixing with Prettier!" | |
let g:ale_fixers = ['prettier', 'eslint'] | |
let g:ale_fix_on_save = 1 | |
"NERDTree config" | |
let NERDTreeShowHidden=1 | |
"Cool Keyboard Shortcuts" | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-l> <C-w>l | |
tnoremap <C-\><C-\> <C-\><C-n> | |
command! Nd NERDTree | |
command! Ndc NERDTreeClose | |
command! Ndr NERDTreeRefreshRoot | |
command! Config e ~/.config/nvim/init.vim | |
colorscheme onedark | |
imap jj <Esc> | |
syntax on | |
set number | |
set autoindent | |
set ruler | |
set confirm | |
set cmdheight=2 | |
set ignorecase | |
set smartcase |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment