feat: add experimental performance fork for nvim-cmp
This commit is contained in:
@@ -6,6 +6,8 @@ local data = require("data")
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
|
-- HACK: Experiemental cmp performance fork
|
||||||
|
dev = true,
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{
|
{
|
||||||
@@ -46,6 +48,7 @@ return {
|
|||||||
"hrsh7th/cmp-buffer",
|
"hrsh7th/cmp-buffer",
|
||||||
"onsails/lspkind.nvim",
|
"onsails/lspkind.nvim",
|
||||||
"hrsh7th/cmp-emoji",
|
"hrsh7th/cmp-emoji",
|
||||||
|
"hrsh7th/cmp-cmdline",
|
||||||
{
|
{
|
||||||
"chrisgrieser/cmp_yanky",
|
"chrisgrieser/cmp_yanky",
|
||||||
option = {
|
option = {
|
||||||
@@ -147,6 +150,28 @@ return {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- `:` cmdline setup.
|
||||||
|
cmp.setup.cmdline(":", {
|
||||||
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = "path" },
|
||||||
|
}, {
|
||||||
|
{
|
||||||
|
name = "cmdline",
|
||||||
|
option = {
|
||||||
|
ignore_cmds = { "Man", "!" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Additional setup for cmdline filetype
|
||||||
|
cmp.setup.filetype("cmdline", {
|
||||||
|
sources = {
|
||||||
|
{ name = "cmdline" }, -- Ensure 'cmdline' source is available
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
-- Custom filetype configuration
|
-- Custom filetype configuration
|
||||||
cmp.setup.filetype("config", {
|
cmp.setup.filetype("config", {
|
||||||
sources = vim.tbl_filter(function(source)
|
sources = vim.tbl_filter(function(source)
|
||||||
|
|||||||
Reference in New Issue
Block a user