From ef9e3ddcce643b7642c581783028ca7fe58a74ab Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 28 Aug 2023 15:25:25 +0100 Subject: Some YCM and ALE changes for C++ --- vim/vimrc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index d8540ae..2093b56 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -158,10 +158,12 @@ nnoremap gd :YcmCompleter GoToDefinition nnoremap gr :YcmCompleter GoToReferences nnoremap K :YcmCompleter GetDoc " this will disable tab, allowing it to be used for ultisnips -let g:ycm_key_list_select_completion = ['', ''] -let g:ycm_key_list_previous_completion = ['', ''] +let g:ycm_key_list_select_completion=[] +let g:ycm_key_list_previous_completion=[] +" let g:ycm_key_list_select_completion = ['', ''] +" let g:ycm_key_list_previous_completion = ['', ''] let g:ycm_python_interpreter_path = '.venv/bin/python3' -let g:ycm_auto_trigger = 0 +let g:ycm_auto_trigger = 1 let g:ycm_python_sys_path = [] let g:ycm_extra_conf_vim_data = [ \ 'g:ycm_python_interpreter_path', @@ -187,7 +189,7 @@ let g:ale_open_list = 0 let g:ale_set_highlights = 1 let g:ale_set_signs = 1 let g:ale_set_loclist = 1 -let g:ale_set_quickfix = 0 +let g:ale_set_quickfix = 1 let g:ale_echo_cursor = 1 let g:ale_echo_msg_error_str = 'Error' let g:ale_echo_msg_format = '%linter% - %code: %%s' @@ -196,9 +198,9 @@ let g:ale_echo_msg_warning_str = 'Warning' let g:ale_linters = {'python': ['pyright', 'flake8', 'mypy'], \ 'ocaml': ['merlin'], \ 'javascript': ['eslint'], -\ 'cpp': ['clang'], +\ 'cpp': ['clangd'], \ 'yaml': ['yamllint'], -\ 'c': ['clang'], +\ 'c': ['clangd'], \ 'go': ['gopls', 'golint', 'gofmt'], \} let g:ale_fixers = { -- cgit v1.2.3