refactor(nvim): nvim cmp cleanup

This commit is contained in:
Price Hiller 2023-04-19 23:21:39 -05:00
parent 176f1c3d21
commit 3237c7e4d3
No known key found for this signature in database
2 changed files with 0 additions and 6 deletions

View File

@ -9,12 +9,10 @@ require("luasnip.loaders.from_vscode").lazy_load()
cmp.setup({ cmp.setup({
formatting = { formatting = {
fields = { cmp.ItemField.Kind, cmp.ItemField.Abbr, cmp.ItemField.Menu }, fields = { cmp.ItemField.Kind, cmp.ItemField.Abbr, cmp.ItemField.Menu },
format = function(entry, vim_item) format = function(entry, vim_item)
local selections = { local selections = {
fuzzy_buffer = { symbol = "", name = "Buffer", hl_group = "Buffer" }, fuzzy_buffer = { symbol = "", name = "Buffer", hl_group = "Buffer" },
path = { symbol = "", name = "Path", hl_group = "Path" },
calc = { symbol = "", name = "Calculator", hl_group = "Calculator" }, calc = { symbol = "", name = "Calculator", hl_group = "Calculator" },
neorg = { symbol = "", name = "Neorg", hl_group = "Neorg" }, neorg = { symbol = "", name = "Neorg", hl_group = "Neorg" },
emoji = { symbol = "", name = "Emoji", hl_group = "Emoji" }, emoji = { symbol = "", name = "Emoji", hl_group = "Emoji" },
@ -140,7 +138,6 @@ cmp.setup({
keyword_length = 3, keyword_length = 3,
max_item_count = 10, max_item_count = 10,
}, },
{ name = "path", priority = 6 },
{ name = "zsh", priority = 5 }, { name = "zsh", priority = 5 },
{ name = "emoji", keyword_length = 2 }, { name = "emoji", keyword_length = 2 },
{ name = "neorg" }, { name = "neorg" },
@ -196,7 +193,6 @@ cmp.setup.cmdline("@", {
cmp.setup.cmdline(":", { cmp.setup.cmdline(":", {
mapping = cmp.mapping.preset.cmdline(), mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = "path" },
{ name = "cmdline" }, { name = "cmdline" },
{ name = "cmdline_history" }, { name = "cmdline_history" },
}), }),

View File

@ -319,7 +319,6 @@ lazy.setup({
event = "VeryLazy", event = "VeryLazy",
dependencies = { dependencies = {
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline", "hrsh7th/cmp-cmdline",
"hrsh7th/cmp-emoji", "hrsh7th/cmp-emoji",
"hrsh7th/cmp-nvim-lsp-document-symbol", "hrsh7th/cmp-nvim-lsp-document-symbol",
@ -342,7 +341,6 @@ lazy.setup({
event = "VeryLazy", event = "VeryLazy",
dependencies = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" }, dependencies = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" },
}, },
{ "tzachar/cmp-fuzzy-path", dependencies = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" } },
{ {
"saecki/crates.nvim", "saecki/crates.nvim",
event = "VeryLazy", event = "VeryLazy",