From 2402ea7ea0aa37a4f8b3c8a33b4e2c049626b296 Mon Sep 17 00:00:00 2001 From: Daniel Knuettel Date: Sat, 13 Nov 2021 15:42:48 +0100 Subject: [PATCH] moved to coq.nvim for completion --- init.vim | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/init.vim b/init.vim index 6c5ddb8..c44004e 100644 --- a/init.vim +++ b/init.vim @@ -85,9 +85,12 @@ call plug#begin('~/.vim/plugged') " This is for the LSP stuff. Plug 'neovim/nvim-lspconfig' Plug 'anott03/nvim-lspinstall' -Plug 'nvim-lua/completion-nvim' Plug 'nvim-lua/lsp-status.nvim' +Plug 'ms-jpq/coq_nvim', {'branch': 'coq'} +Plug 'ms-jpq/coq.artifacts', {'branch': 'artifacts'} +Plug 'ms-jpq/coq.thirdparty', {'branch': '3p'} + " Inserting unicode characters. Plug 'chrisbra/unicode.vim' @@ -149,7 +152,7 @@ local nvim_lsp = require('lspconfig') -- This basically enables autocompletion local on_attach = function(_, bufnr) vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') - require'completion'.on_attach(_, bufnr) + --require'completion'.on_attach(_, bufnr) -- also attach lsp-status nvim_lsp_status.on_attach(_, bufnr) end @@ -220,13 +223,8 @@ endfunction " and also gives some documentation preview. set completeopt=menuone,noinsert,noselect -" This prevents the auto-completion from -" inserting the full method signature. -let g:completion_enable_auto_signature = 0 - -let g:completion_enable_snippet = 'UltiSnips' -" Use completion-nvim in every buffer -autocmd BufEnter * lua require'completion'.on_attach() +let g:coq_settings = {'auto_start': v:true, 'keymap.recommended': v:false, 'display.icons.mode': 'none'} +lua require'coq' "============================ A Nice Color Scheme ==============================