Nvim: switch from nvim-cmp to epo

This commit is contained in:
Robert Kmieć
2024-05-23 00:13:18 +02:00
parent 6cfad76308
commit 063a693f19
4 changed files with 24 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
return {
'nvimdev/epo.nvim',
config = function()
-- the default completetopt set by epo
vim.opt.completeopt = "menu,menuone,noselect,popup"
-- use default settings
require('epo').setup({
fuzzy = true,
signature_border = 'rounded',
})
end
}

View File

@@ -162,7 +162,11 @@ return {
end end
}) })
local capabilities = require('cmp_nvim_lsp').default_capabilities() --local capabilities = require('cmp_nvim_lsp').default_capabilities()
local capabilities = vim.tbl_deep_extend('force',
vim.lsp.protocol.make_client_capabilities(),
require('epo').register_cap()
)
capabilities.offsetEncoding = { "utf-16" } capabilities.offsetEncoding = { "utf-16" }
nvim_lsp.groovyls.setup({ nvim_lsp.groovyls.setup({

View File

@@ -1,6 +1,6 @@
return { return {
{ 'tzachar/cmp-ai', dependencies = 'nvim-lua/plenary.nvim'}, { 'tzachar/cmp-ai', dependencies = 'nvim-lua/plenary.nvim', enabled = false},
{ 'petertriho/cmp-git'}, { 'petertriho/cmp-git', enabled = false},
{ {
'hrsh7th/nvim-cmp', 'hrsh7th/nvim-cmp',
dependencies = { dependencies = {
@@ -152,6 +152,7 @@ return {
}) })
require("cmp_git").setup() require("cmp_git").setup()
end end,
enabled = false
} }
} }

View File

@@ -17,5 +17,6 @@ return {
}, },
}, },
}) })
end end,
enabled = false
} }