-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.vim
62 lines (51 loc) · 1.39 KB
/
init.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'vim-airline/vim-airline'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-unimpaired'
Plug 'tpope/vim-eunuch'
Plug 'tpope/vim-sleuth'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
Plug 'mhinz/vim-signify'
Plug 'mhinz/vim-startify'
Plug 'mhinz/vim-grepper'
Plug 'ajh17/VimCompletesMe'
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'wincent/terminus'
Plug 'w0rp/ale'
Plug 'rust-lang/rust.vim'
Plug 'justinmk/vim-dirvish'
call plug#end()
" FZF
" https://github.com/junegunn/fzf#respecting-gitignore
let $FZF_DEFAULT_COMMAND = 'rg --files'
" Ale
let g:ale_fixers = {'rust': ['rustfmt']}
let g:ale_fix_on_save = 1
let g:ale_virtualtext_cursor = 1
let g:ale_completion_enabled = 1
" Startify
let g:startify_change_to_vcs_root = 1
" Dirvish
autocmd FileType dirvish
\ nnoremap <silent><buffer> t :call dirvish#open('tabedit', 0)<cr>
\ |xnoremap <silent><buffer> t :call dirvish#open('tabedit', 0)<cr>
" Settings and mappings
colorscheme dracula
set cursorline
set hidden
set ignorecase
set number
set smartcase
set termguicolors
set undofile
nnoremap <c-l> :noh<cr>
nnoremap <c-p> :Files<cr>
nnoremap <c-j> :Rg<cr>
nnoremap <c-k> :GrepperRg
nnoremap <silent> gd :ALEGoToDefinition<cr>
nnoremap <silent> gh :ALEHover<cr>
nnoremap <silent> gr :ALEFindReferences<cr>