aboutsummaryrefslogtreecommitdiff
path: root/stow/vim/.vim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'stow/vim/.vim/ftplugin')
-rw-r--r--stow/vim/.vim/ftplugin/python/python.vim16
-rw-r--r--stow/vim/.vim/ftplugin/vimwiki/vimwiki.vim2
2 files changed, 12 insertions, 6 deletions
diff --git a/stow/vim/.vim/ftplugin/python/python.vim b/stow/vim/.vim/ftplugin/python/python.vim
index b868b10..dd2ff02 100644
--- a/stow/vim/.vim/ftplugin/python/python.vim
+++ b/stow/vim/.vim/ftplugin/python/python.vim
@@ -11,6 +11,7 @@ call matchadd('ColorColumn', '\%91v', 100)
setlocal textwidth=90
let b:ale_python_pylint_options = '-d invalid-name'
+let b:ale_fixers = ['yapf']
" Mappings
@@ -20,11 +21,16 @@ nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/python/python.vim<CR>
nnoremap <buffer> <leader>x :! ./%
nnoremap <buffer> <leader>X :! ./%<CR>
-nnoremap <buffer> gd :YcmCompleter GoTo<CR>
-nnoremap <buffer> gr :YcmCompleter GoToReferences<CR>
-nnoremap <buffer> gR :YcmCompleter RefactorRename<Space>
-nnoremap <buffer> <leader>gd :YcmCompleter GetDoc<CR>
-nnoremap <buffer> <leader>gT :YcmCompleter GetType<CR>
+"nnoremap <buffer> gd :YcmCompleter GoTo<CR>
+"nnoremap <buffer> gr :YcmCompleter GoToReferences<CR>
+"nnoremap <buffer> gR :YcmCompleter RefactorRename<Space>
+"nnoremap <buffer> <leader>gd :YcmCompleter GetDoc<CR>
+"nnoremap <buffer> <leader>gT :YcmCompleter GetType<CR>
+
+nnoremap gd <Plug>(coc-definition)
+nnoremap gy <Plug>(coc-type-definition)
+nnoremap gi <Plug>(coc-implementation)
+nnoremap gr <Plug>(coc-references)
nnoremap <buffer> <leader>db :!tmux split-window -l '40\%' 'python -m̀ pdb %'
diff --git a/stow/vim/.vim/ftplugin/vimwiki/vimwiki.vim b/stow/vim/.vim/ftplugin/vimwiki/vimwiki.vim
index b6c2e8f..d51844b 100644
--- a/stow/vim/.vim/ftplugin/vimwiki/vimwiki.vim
+++ b/stow/vim/.vim/ftplugin/vimwiki/vimwiki.vim
@@ -20,7 +20,7 @@ highlight Title ctermfg=blue
highlight TitleHash ctermfg=cyan
match TitleHash /^##*/
-setlocal conceallevel=1
+setlocal conceallevel=0
let mapleader = " "