From 3aac3ed04d04131944caff076095233b759667cb Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Mon, 31 Jan 2022 00:45:33 +0200 Subject: [PATCH] fix: remove emoji suggesstions from lsp --- lua/config/cmp.lua | 4 +--- lua/plugins.lua | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lua/config/cmp.lua b/lua/config/cmp.lua index e3f9f77..400a46b 100644 --- a/lua/config/cmp.lua +++ b/lua/config/cmp.lua @@ -50,11 +50,10 @@ cmp.setup{ end, { "i", "s" }), }, sources = { - { name = 'emoji', max_item_count = 10, keyword_length = 5 }, { name = 'nvim_lua' }, - { name = 'cmp_tabnine' }, { name = 'nvim_lsp', max_item_count = 20 }, + { name = 'cmp_tabnine' }, { name = 'path' }, { name = 'luasnip' }, { name = 'buffer', max_item_count = 10, keyword_length = 5 }, @@ -69,7 +68,6 @@ cmp.setup{ nvim_lua = "[api]", path = "[path]", luasnip = "[snip]", - emoji = "[emoji]" } } }, diff --git a/lua/plugins.lua b/lua/plugins.lua index c1379c8..fd433a4 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -162,7 +162,6 @@ local function usePlugins(use, use_rocks) use {'hrsh7th/cmp-buffer', after = 'nvim-cmp', requires = 'hrsh7th/nvim-cmp'} use {'hrsh7th/cmp-path', after = 'nvim-cmp', requires = 'hrsh7th/nvim-cmp'} use {'hrsh7th/cmp-cmdline', after = 'nvim-cmp', requires = 'hrsh7th/nvim-cmp'} - use {'hrsh7th/cmp-emoji', after = 'nvim-cmp', requires = 'hrsh7th/nvim-cmp'} use {'saadparwaiz1/cmp_luasnip', after = 'nvim-cmp', requires = {'L3MON4D3/LuaSnip', 'nvim-cmp'}} -- Better diagnostics viewer @@ -274,4 +273,3 @@ local plugins = setmetatable({}, { }) return plugins -