From 2c92fef0403f6ab913a2599bfefeef1551e620cb Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Tue, 14 Sep 2021 13:08:04 +0900 Subject: [PATCH] Advertise a bit --- README.md | 4 ++-- lua/cmp/config/default.lua | 2 +- plugin/cmp.lua | 8 -------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e1160c7..bd8f884 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,7 @@ Can be used. Feedback wanted! Concept ==================== -- Provides a completion engine to handle completion sources -- Support pairs-wise plugin automatically +- Works properly - Fully customizable via Lua functions - Fully supported LSP's Completion capabilities - Snippets @@ -26,6 +25,7 @@ Concept - Execute commands (Some LSP server needs it to auto-importing. e.g. `sumneko_lua` or `purescript-language-server`) - Preselect - CompletionItemTags +- Support pairs-wise plugin automatically Setup diff --git a/lua/cmp/config/default.lua b/lua/cmp/config/default.lua index d9ccc09..598d62a 100644 --- a/lua/cmp/config/default.lua +++ b/lua/cmp/config/default.lua @@ -31,7 +31,7 @@ return function() documentation = { border = { '', '', '', ' ', '', '', '', ' ' }, - winhighlight = 'NormalFloat:CmpDocumentation,FloatBorder:CmpDocumentationBorder', + winhighlight = 'NormalFloat:NormalFloat,FloatBorder:NormalFloat', maxwidth = math.floor((WIDE_HEIGHT * 2) * (vim.o.columns / (WIDE_HEIGHT * 2 * 16 / 9))), maxheight = math.floor(WIDE_HEIGHT * (WIDE_HEIGHT / vim.o.lines)), }, diff --git a/plugin/cmp.lua b/plugin/cmp.lua index 8660858..4a50318 100644 --- a/plugin/cmp.lua +++ b/plugin/cmp.lua @@ -15,11 +15,3 @@ vim.cmd [[ augroup END ]] -if vim.fn.hlexists('CmpDocumentation') == 0 then - vim.api.nvim_command [[highlight link CmpDocumentation NormalFloat]] -end - -if vim.fn.hlexists('CmpDocumentationBorder') == 0 then - vim.api.nvim_command [[highlight link CmpDocumentationBorder NormalFloat]] -end -