From 83a5af7b6c8ed1d46e0fb40ede5befae2cdd7362 Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Sat, 9 Oct 2021 16:19:58 +0200 Subject: [PATCH] Adds python-jedi and supertab completion --- .config/nvim/init.vim | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index e44c7b4..4c67a11 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -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 pumvisible() ? "\" : "\" +"inoremap pumvisible() ? "\" : "\" +let g:SuperTabDefaultCompletionType = "" +let g:SuperTabClosePreviewOnPopupClose = 1 +inoremap pumvisible() ? "\" : "\" + set noshowmode