aboutsummaryrefslogtreecommitdiffstats
path: root/vim/vimrc
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-08-20 17:41:03 +0100
committerMatthew Lemon <y@yulqen.org>2023-08-20 17:41:03 +0100
commit98165e4932e9bb0871f27b6461983e4a099eed3c (patch)
treea02da79e41b00c9150509f42797bcfa97414d6b2 /vim/vimrc
parentd88e25d2282df5c08f1551d3435f65adda5a6b29 (diff)
Some YCM config
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc9
1 files changed, 8 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 2628c5c..d39f406 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -138,6 +138,14 @@ autocmd BufEnter *.html,*.slim if s:is_tailwind() |
\ endif
" YCM
+" *** STARTING AND ENABLING ***
+" Don't start on start - or use show_diagnostics below
+"let g:loaded_youcompleteme = 1
+"
+" with this set to 0, YCM doesn't load/start
+let g:ycm_show_diagnostics_ui = 1
+" ******************************
+
let g:ycm_enable_inlay_hints = 1
nnoremap <silent> <localleader>h <Plug>(YCMToggleInlayHints)
nnoremap gd :YcmCompleter GoToDefinition<CR>
@@ -149,7 +157,6 @@ let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:ycm_python_interpreter_path = '.venv/bin/python3'
let g:ycm_auto_trigger = 0
let g:ycm_python_sys_path = []
-let g:ycm_show_diagnostics_ui = 1
let g:ycm_extra_conf_vim_data = [
\ 'g:ycm_python_interpreter_path',
\ 'g:ycm_python_sys_path'