-
Notifications
You must be signed in to change notification settings - Fork 0
/
ycm_settings.vim
28 lines (25 loc) · 1.02 KB
/
ycm_settings.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
let g:ycm_min_num_of_chars_for_completion = 999 " disable identifier completion
"let g:ycm_auto_trigger = 0 " disable identifier and automatic semantic completion
let g:ycm_error_symbol = '!!'
let g:ycm_warning_symbol = '>>'
let g:ycm_extra_conf_globlist = ['~/proj/*','!~/*']
let g:ycm_always_populate_location_list = 1
" for debugging purposes.
let g:ycm_server_keep_logfile = 1
let g:ycm_server_log_level = 'debug'
let g:ycm_autoclose_preview_window_after_completion=1
" Let YCM know about other language servers.
let g:ycm_language_server = [
\ {
\ 'name': 'haskell-language-server',
\ 'cmdline': [ 'haskell-language-server-wrapper', '--lsp' ],
\ 'filetypes': [ 'haskell', 'lhaskell' ],
\ 'project_root_files': [ 'stack.yaml', 'cabal.project', 'package.yaml', 'hie.yaml' ],
\
\ },
\
\]
nmap <leader>d :YcmCompleter GoToDefinitionElseDeclaration<CR>
nmap <leader>r :YcmCompleter GoToReferences<CR>
nmap <leader>q :YcmRestartServer<CR>
nmap <leader>f :YcmCompleter FixIt<CR>