refactor: clean up cmp provider setup for clarity
This commit is contained in:
+4
-4
@@ -11,11 +11,12 @@ local perf = vim.g.cmp_performance_enabled or false
|
|||||||
local function cmp_provider(performance)
|
local function cmp_provider(performance)
|
||||||
if performance then
|
if performance then
|
||||||
return {
|
return {
|
||||||
url = "yioneko/nvim-cmp",
|
-- url = "yioneko/nvim-cmp",
|
||||||
|
url = "iguanacucumber/magazine.nvim",
|
||||||
-- Experiemental cmp performance fork
|
-- Experiemental cmp performance fork
|
||||||
dev = true,
|
dev = true,
|
||||||
branch = "perf-up",
|
-- branch = "perf-up",
|
||||||
build = "git clone -b perf-up https://github.com/yioneko/nvim-cmp.git ~/projects/nvim-cmp/",
|
-- build = "git clone -b perf-up https://github.com/yioneko/nvim-cmp.git ~/projects/nvim-cmp/",
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
return {
|
return {
|
||||||
@@ -88,7 +89,6 @@ return { -- cmp
|
|||||||
["<Tab>"] = cmp.mapping(function(fallback)
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
cmp.select_next_item()
|
cmp.select_next_item()
|
||||||
-- cmp.confirm({ select = true })
|
|
||||||
elseif luasnip.expand_or_locally_jumpable() then
|
elseif luasnip.expand_or_locally_jumpable() then
|
||||||
luasnip.expand_or_jump()
|
luasnip.expand_or_jump()
|
||||||
elseif vim.snippet.active({ direction = 1 }) then
|
elseif vim.snippet.active({ direction = 1 }) then
|
||||||
|
|||||||
Reference in New Issue
Block a user