nvim: init.vim: Add jedi-vim

Show Pydocs feature in deoplete jedi does not seem to consider
the complete word. For example, os.path.splitext placing cursor
on splitext seems to give an error. Same works in jedi-vim. Do
not use completions from jedi-vim though.
This commit is contained in:
Sanchayan Maity 2019-12-10 12:29:13 +05:30 committed by Sanchayan Maity
parent e08b4113f0
commit 58e5137876

View file

@ -63,6 +63,7 @@ Plug 'LnL7/vim-nix', { 'for': 'nix' }
" For autocompletion " For autocompletion
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" For Python " For Python
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
Plug 'zchee/deoplete-jedi', { 'for': 'python' } Plug 'zchee/deoplete-jedi', { 'for': 'python' }
Plug 'numirias/semshi', { 'for': 'python', 'do': ':UpdateRemotePlugins' } Plug 'numirias/semshi', { 'for': 'python', 'do': ':UpdateRemotePlugins' }
" Autocomplete for Rust " Autocomplete for Rust
@ -600,6 +601,26 @@ let g:hardtime_ignore_quickfix = 1
let g:hardtime_maxcount = 3 let g:hardtime_maxcount = 3
let g:hardtime_allow_different_key = 1 let g:hardtime_allow_different_key = 1
let g:jedi#goto_command = "<Leader>jt"
let g:jedi#goto_assignments_command = "<Leader>ja"
let g:jedi#goto_definitions_command = "<Leader>jg"
let g:jedi#documentation_command = "<Leader>jd"
let g:jedi#usages_command = "<Leader>ju"
let g:jedi#completions_command = "<Tab>"
let g:jedi#rename_command = "<Leader>jr"
let g:jedi#auto_initialization = 1
let g:jedi#auto_vim_configuration = 0
let g:jedi#use_tabs_not_buffers = 1
let g:jedi#popup_on_dot = 1
let g:jedi#popup_select_first = 0
let g:jedi#smart_auto_mappings = 0
let g:jedi#show_call_signatures = "1"
let g:jedi#show_call_signatures_delay = 0
let g:jedi#show_call_signatures_modes = 'i'
let g:jedi#enable_speed_debugging = 0
let g:jedi#completions_enabled = 0
" ----------------------------- Functions ------------------------------------ " ----------------------------- Functions ------------------------------------
" For CScope and Quickfix " For CScope and Quickfix
" https://medium.com/@lakshmankumar12/quickfix-and-location-list-in-vim-ca0292ac894d " https://medium.com/@lakshmankumar12/quickfix-and-location-list-in-vim-ca0292ac894d