From 173259f9672d26a9f1001e13962a5a5736776ede Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Thu, 14 Nov 2019 20:47:26 -0500 Subject: [PATCH] Fixed up some stuff --- playbooks/roles/neovim/tasks/main.yml | 7 +++++++ vim/coc-settings.json | 8 ++++++++ vim/vimrc | 8 ++++---- 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 vim/coc-settings.json diff --git a/playbooks/roles/neovim/tasks/main.yml b/playbooks/roles/neovim/tasks/main.yml index f215660..e5c82ad 100644 --- a/playbooks/roles/neovim/tasks/main.yml +++ b/playbooks/roles/neovim/tasks/main.yml @@ -11,3 +11,10 @@ state: link force: yes +- name: Symlink coc-settings.json + file: + src: ~/.dotfiles/vim/coc-settings.json + dest: ~/.config/nvim/coc-settings.json + state: link + force: yes + diff --git a/vim/coc-settings.json b/vim/coc-settings.json new file mode 100644 index 0000000..bc390a0 --- /dev/null +++ b/vim/coc-settings.json @@ -0,0 +1,8 @@ +{ + "python.linting.enabled": true, + "python.linting.lintOnSave": true, + "python.linting.pylintEnabled": false, + "python.linting.flake8Enabled": true, + "suggest.triggerAfterInsertEnter": true, + "suggest.acceptSuggestionOnCommitCharacter": false +} diff --git a/vim/vimrc b/vim/vimrc index cf41538..b2506b5 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -174,16 +174,16 @@ nnoremap nnoremap "Coc Keymaps and options -nnoremap d (coc-definition) -nnoremap g (coc-type-definition) +nnoremap d :call CocAction('jumpDefinition') +nnoremap g :call CocAtion('jumpTypeDefinition') "which-key let g:which_key_map = {} autocmd! User vim-which-key call which_key#register('', 'g:which_key_map') let g:which_key_map[' '] = { \ 'name' : '+CoC' , - \ 'd' : 'definition' , - \ 'g' : 'go-to-definition' , + \ 'd' : 'go-to-definition' , + \ 'g' : 'go-to-type-definition' , \ } call which_key#register('', "g:which_key_map") nnoremap :WhichKey ''