Skip to content

Commit

Permalink
(vim) Add keybinding to trigger CoC completion
Browse files Browse the repository at this point in the history
  • Loading branch information
danguita committed Mar 10, 2024
1 parent c7ebf96 commit b79a99b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,11 @@ let g:ale_linters = { 'javascript': ['eslint'], 'typescript': ['eslint'], 'types
let g:ale_fixers = { 'javascript': ['prettier'], 'typescript': ['prettier'], 'typescriptreact': ['prettier'], 'ruby': ['rubocop'], 'elixir': ['mix_format'], 'haskell': ['hlint'], 'rust': ['rustfmt'] }
let g:ale_javascript_prettier_use_local_config = 1
let g:ale_ruby_rubocop_executable = 'bin/rubocop'

" CoC
" Use <c-space> to trigger completion: >
if has('nvim')
inoremap <silent><expr> <c-space> coc#refresh()
else
inoremap <silent><expr> <c-@> coc#refresh()
endif

0 comments on commit b79a99b

Please sign in to comment.