diff --git a/vimrc b/vimrc index 0109086..790cdb5 100644 --- a/vimrc +++ b/vimrc @@ -1,4 +1,3 @@ - " (_) " __ ___ _ __ ___ _ __ ___ " \ \ / / | '_ ` _ \| '__/ __| @@ -30,6 +29,11 @@ Plug 'tpope/vim-commentary' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-surround' Plug 'github/copilot.vim', {'branch': 'release'} +Plug 'roxma/nvim-yarp', { 'do': 'pip install -r requirements.txt' } +Plug 'ncm2/ncm2' +Plug 'ncm2/ncm2-bufword' +Plug 'ncm2/ncm2-path' +Plug 'ncm2/ncm2-jedi' call plug#end() @@ -43,12 +47,10 @@ set comments=b:# " patterns that can start a comment li set completeopt=noinsert,menuone,noselect " options for Insert mode completion set completeopt=noinsert,menuone,noselect " options for Insert mode completion set cursorline " highlight the screen line of the cursor -" set foldenable " set to display all folds open -" set foldopen-=block " for which commands a fold will be opened -set foldmethod=expr -set foldexpr=nvim_treesitter#foldexpr() " expression used to determine fold level -" set foldmethod=marker -set nofoldenable " disable folding at startup. +set foldenable " set to display all folds open +set foldopen-=block " for which commands a fold will be opened +set foldmethod=marker +" set nofoldenable " disable folding at startup. set foldtext=FoldText() " expression used to display for a closed fold set formatoptions-=cro " how automatic formatting is to be done set hlsearch " highlight matches with last search pattern @@ -148,3 +150,6 @@ augroup dirvish_config \ | nmap p (dovish_copy) augroup END + +" autocmd BufEnter * call ncm2#enable_for_buffer() +set completeopt=noinsert,menuone,noselect