-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
72 lines (61 loc) · 1.6 KB
/
.vimrc
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
63
64
65
66
67
68
69
70
71
72
call plug#begin('~/.local/share/nvim/plugged')
Plug 'w0rp/ale'
Plug 'vim-airline/vim-airline'
Plug 'haya14busa/vim-asterisk'
Plug 'haya14busa/incsearch.vim'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-commentary'
Plug 'rust-lang/rust.vim'
Plug 'ntpeters/vim-better-whitespace'
Plug 'michaeljsmith/vim-indent-object'
Plug 'wellle/targets.vim'
Plug 'edkolev/tmuxline.vim'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'Numkil/ag.nvim'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
call plug#end()
syntax on
set tabstop=4
set shiftwidth=4
colorscheme desert
set incsearch
set hlsearch
set showcmd
set linebreak
set autoindent
set cindent
set ignorecase
set smartcase
set smarttab
set foldmethod=syntax
set foldlevelstart=20
set tags=tags;
set expandtab
set mouse=a
set noswapfile
"newlines without insert mode
nmap <S-Enter> O<Esc>
nmap <CR> o<Esc>
" Mappings for incsearch plugin
map / <Plug>(incsearch-forward)
map ? <Plug>(incsearch-backward)
map g/ <Plug>(incsearch-stay)
" Mappings for vim-asterisk plugin
" These use the 'stay' versions of the commands
map * <Plug>(asterisk-z*)
map # <Plug>(asterisk-z#)
map g* <Plug>(asterisk-gz*)
map g# <Plug>(asterisk-gz#)
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
set termguicolors
let g:ale_linters = { 'rust': ['rls'] }
let g:ale_rust_rls_toolchain = 'stable'
" let g:ale_completion_enabled = 1
nn <silent> <M-d> :ALEGoToDefinition<cr>
nn <silent> <M-r> :ALEFindReferences<cr>
nn <silent> <M-a> :ALESymbolSearch<cr>
nn <silent> <M-h> :ALEHover<cr>
let g:ctrlp_user_command = 'fd --color=never "" %s'
let g:deoplete#enable_at_startup = 1