try without cmp
remove the auto attach thing. not needed
This commit is contained in:
@@ -48,7 +48,8 @@ vim.cmd [=[
|
||||
nnoremap ,rl :checktime<CR>
|
||||
nnoremap ,m :wa<CR>:make<CR>
|
||||
nnoremap <silent> <Esc> :noh<CR><Esc>
|
||||
inoremap <c-k> <c-x>
|
||||
inoremap <c-o> <c-x><c-o>
|
||||
inoremap <c-f> <c-x><c-f>
|
||||
|
||||
nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR>
|
||||
|
||||
@@ -594,6 +595,9 @@ require'lazy'.setup{ --{{{1
|
||||
}
|
||||
}
|
||||
require'mason-lspconfig'.setup()
|
||||
vim.opt.completeopt = { 'menu', 'popup', 'preview', 'fuzzy' }
|
||||
|
||||
|
||||
vim.lsp.config.zls = {
|
||||
before_init = function(_, _)
|
||||
vim.g.zig_fmt_autosave = false -- may not be needed anymore?
|
||||
@@ -793,37 +797,6 @@ require'lazy'.setup{ --{{{1
|
||||
]]
|
||||
end
|
||||
},
|
||||
{ 'hrsh7th/nvim-cmp', --{{{2
|
||||
dependencies = {
|
||||
'hrsh7th/cmp-nvim-lsp',
|
||||
'hrsh7th/cmp-path',
|
||||
'dcampos/nvim-snippy',
|
||||
'dcampos/cmp-snippy',
|
||||
},
|
||||
config = function()
|
||||
local cmp = require'cmp'
|
||||
cmp.setup{
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require'snippy'.expand_snippet(args.body)
|
||||
end,
|
||||
},
|
||||
mapping = {
|
||||
['<C-y>'] = cmp.mapping.confirm{ select = true },
|
||||
['<C-n>'] = cmp.mapping.select_next_item(),
|
||||
['<C-p>'] = cmp.mapping.select_prev_item(),
|
||||
},
|
||||
sources = cmp.config.sources(
|
||||
{
|
||||
{ name = 'snippy', priority = 100000000000000000000 },
|
||||
{ name = 'nvim_lsp', priority = 1000000000},
|
||||
{ name = 'path', priority = 1},
|
||||
}
|
||||
),
|
||||
preselect = cmp.PreselectMode.None,
|
||||
}
|
||||
end,
|
||||
},
|
||||
{ 'nvim-telescope/telescope.nvim', --{{{2
|
||||
tag = 'v0.2.2',
|
||||
dependencies = {
|
||||
|
||||
Reference in New Issue
Block a user