moved to coq.nvim for completion
This commit is contained in:
parent
0cb027d148
commit
2402ea7ea0
16
init.vim
16
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 ==============================
|
||||
|
|
Loading…
Reference in New Issue
Block a user