Adds python-jedi and supertab completion
This commit is contained in:
+21
-1
@@ -2,7 +2,20 @@ let mapleader =","
|
||||
set bg=dark
|
||||
set clipboard=unnamedplus
|
||||
set nocompatible
|
||||
|
||||
set smartindent
|
||||
set tabstop=2
|
||||
set softtabstop=2
|
||||
set expandtab
|
||||
set smarttab
|
||||
set shiftwidth=2
|
||||
set autoindent
|
||||
set smartindent
|
||||
|
||||
set completeopt=longest,menuone,preview
|
||||
|
||||
set ruler " show the cursor position all the time
|
||||
|
||||
filetype plugin on
|
||||
syntax on
|
||||
set encoding=utf-8
|
||||
@@ -17,11 +30,18 @@ call plug#begin(stdpath('data') . '/plugged')
|
||||
Plug 'calviken/vim-gdscript3'
|
||||
Plug 'Shougo/deoplete-clangx'
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||
Plug 'deoplete-plugins/deoplete-jedi'
|
||||
Plug 'ervandew/supertab'
|
||||
call plug#end()
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
let g:deoplete#sources#jedi#show_docstring = 1
|
||||
call deoplete#custom#var('clangx', 'clang_binary', '/usr/bin/clang')
|
||||
|
||||
" Deoplete autocomplete with tab
|
||||
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
||||
"inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
||||
let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
|
||||
let g:SuperTabClosePreviewOnPopupClose = 1
|
||||
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||
|
||||
|
||||
set noshowmode
|
||||
|
||||
Reference in New Issue
Block a user