aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-08-28 15:25:25 +0100
committerMatthew Lemon <y@yulqen.org>2023-08-28 15:25:25 +0100
commitef9e3ddcce643b7642c581783028ca7fe58a74ab (patch)
tree17793bafa192c872fa755984e5e9f47e1b537022
parent2ee71e7cbe7ec1aafb2b4d6b373e62a4ba59d0f3 (diff)
Some YCM and ALE changes for C++
-rw-r--r--vim/vimrc14
1 files changed, 8 insertions, 6 deletions
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<CR>
nnoremap <leader>gr :YcmCompleter GoToReferences<CR>
nnoremap K :YcmCompleter GetDoc<CR>
" this will disable tab, allowing it to be used for ultisnips
-let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
-let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
+let g:ycm_key_list_select_completion=[]
+let g:ycm_key_list_previous_completion=[]
+" let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
+" 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_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 = {