From 3237c7e4d34277a1441c775fb6058846e03f7ec8 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 19 Apr 2023 23:21:39 -0500 Subject: [PATCH] refactor(nvim): nvim cmp cleanup --- dots/.config/nvim/lua/plugins/configs/_cmp.lua | 4 ---- dots/.config/nvim/lua/plugins/plugins.lua | 2 -- 2 files changed, 6 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/_cmp.lua b/dots/.config/nvim/lua/plugins/configs/_cmp.lua index 808cf856..1576cdf5 100755 --- a/dots/.config/nvim/lua/plugins/configs/_cmp.lua +++ b/dots/.config/nvim/lua/plugins/configs/_cmp.lua @@ -9,12 +9,10 @@ require("luasnip.loaders.from_vscode").lazy_load() cmp.setup({ formatting = { - fields = { cmp.ItemField.Kind, cmp.ItemField.Abbr, cmp.ItemField.Menu }, format = function(entry, vim_item) local selections = { fuzzy_buffer = { symbol = "﬘ ", name = "Buffer", hl_group = "Buffer" }, - path = { symbol = " ", name = "Path", hl_group = "Path" }, calc = { symbol = " ", name = "Calculator", hl_group = "Calculator" }, neorg = { symbol = " ", name = "Neorg", hl_group = "Neorg" }, emoji = { symbol = "ﲃ ", name = "Emoji", hl_group = "Emoji" }, @@ -140,7 +138,6 @@ cmp.setup({ keyword_length = 3, max_item_count = 10, }, - { name = "path", priority = 6 }, { name = "zsh", priority = 5 }, { name = "emoji", keyword_length = 2 }, { name = "neorg" }, @@ -196,7 +193,6 @@ cmp.setup.cmdline("@", { cmp.setup.cmdline(":", { mapping = cmp.mapping.preset.cmdline(), sources = cmp.config.sources({ - { name = "path" }, { name = "cmdline" }, { name = "cmdline_history" }, }), diff --git a/dots/.config/nvim/lua/plugins/plugins.lua b/dots/.config/nvim/lua/plugins/plugins.lua index 370baf48..9ad67039 100755 --- a/dots/.config/nvim/lua/plugins/plugins.lua +++ b/dots/.config/nvim/lua/plugins/plugins.lua @@ -319,7 +319,6 @@ lazy.setup({ event = "VeryLazy", dependencies = { "hrsh7th/cmp-nvim-lsp", - "hrsh7th/cmp-path", "hrsh7th/cmp-cmdline", "hrsh7th/cmp-emoji", "hrsh7th/cmp-nvim-lsp-document-symbol", @@ -342,7 +341,6 @@ lazy.setup({ event = "VeryLazy", dependencies = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" }, }, - { "tzachar/cmp-fuzzy-path", dependencies = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" } }, { "saecki/crates.nvim", event = "VeryLazy",