-
Notifications
You must be signed in to change notification settings - Fork 0
/
minvimrc
68 lines (58 loc) · 1.49 KB
/
minvimrc
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
set nocompatible
filetype off
call plug#begin()
Plug '~/dev/vim-lc'
call plug#end()
filetype plugin indent on
set shiftwidth=4
syntax on
set expandtab
set number relativenumber
set signcolumn=yes
set hlsearch
set completeopt=noinsert,menuone,noselect
let g:vlc#log#level = 'error'
let g:vlc#servers = {
\ 'go': {
\ 'name': 'gopls',
\ 'command': 'gopls',
\ 'initializationOptions': {
\ 'codelens': { 'test': v:true, 'gc_details': v:true },
\ },
\ },
\ 'rust': {
\ 'name': 'rust-analyzer',
\ 'command': 'rust-analyzer',
\ 'initializationOptions': {
\ "diagnostics": {
\ "disabled": ["macro-error"]
\ },
\ "procMacro": {
\ "enable": v:true
\ },
\ "cargo": {
\ "loadOutDirsFromCheck": v:true
\ }
\ }
\ },
\ }
nmap <silent>gd <Plug>(vlc-definition)
nmap <silent>gi <Plug>(vlc-implementation)
nmap <silent>gr <Plug>(vlc-references)
nmap <silent>ga <Plug>(vlc-code-action)
nmap <silent>gl <Plug>(vlc-code-lens)
nmap <silent>R <Plug>(vlc-rename)
nmap <silent>K <Plug>(vlc-hover)
nmap <silent>F <Plug>(vlc-formatting)
nmap <silent>E <Plug>(vlc-diagnostic-detail)
nmap <Left> :cprev<CR>
nmap <Right> :cnext<CR>
function! ProfileStart()
:profile start profile.log
:profile func *
:profile file *
endfunction
function! ProfileStop()
:profile stop
endfunction
command! ProfileStart :call ProfileStart()