From 7991b12511b9d82d18ee682cea8cb956216bc4a0 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Sat, 9 Oct 2021 11:32:01 +0700 Subject: [PATCH] neovim: make completion menu more colorful Also change Telescope match highlight to be the same as nvim-cmp --- home/.config/nvim/lua/colors/nord.lua | 6 +++--- home/.config/nvim/lua/modules/completion.lua | 1 - home/.config/nvim/lua/plugins.lua | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/home/.config/nvim/lua/colors/nord.lua b/home/.config/nvim/lua/colors/nord.lua index 38ad5fc..59ffe76 100644 --- a/home/.config/nvim/lua/colors/nord.lua +++ b/home/.config/nvim/lua/colors/nord.lua @@ -304,8 +304,8 @@ local function highlight_plugins() hi('CmpItemAbbr', c.fg, '', '', '') hi('CmpItemAbbrMatch', c.yellow, '', '', '') hi('CmpItemAbbrMatchFuzzy', c.yellow, '', '', '') - hi('CmpItemKind', c.fg, '', '', '') - hi('CmpItemMenu', c.fg, '', '', '') + hi('CmpItemKind', c.orange, '', '', '') + hi('CmpItemMenu', c.blue, '', '', '') -- Gitsigns hi('GitSignsAddNr' , c.green , '', '', '') @@ -378,7 +378,7 @@ local function highlight_plugins() hi('TelescopeSelection', c.fg, c.grey2, '', '') hi('TelescopeMultiSelection', c.fg, c.grey2, 'bold', '') hi('TelescopeSelectionCaret', c.red, c.grey2, 'bold', '') - hi('TelescopeMatching', c.purple, '', 'bold', '') + hi('TelescopeMatching', c.yellow, '', 'bold', '') -- Neogit hi('NeogitBranch', c.purple, '', '', '') diff --git a/home/.config/nvim/lua/modules/completion.lua b/home/.config/nvim/lua/modules/completion.lua index 717d492..febcd31 100644 --- a/home/.config/nvim/lua/modules/completion.lua +++ b/home/.config/nvim/lua/modules/completion.lua @@ -10,7 +10,6 @@ function M.cmp_conf() end cmp.setup { - experimental = {custom_menu = true}, -- Use custom highlightng for the floating completion menu formatting = { format = function(entry, vim_item) local lspkind_icons = { diff --git a/home/.config/nvim/lua/plugins.lua b/home/.config/nvim/lua/plugins.lua index 36125fb..a806d81 100644 --- a/home/.config/nvim/lua/plugins.lua +++ b/home/.config/nvim/lua/plugins.lua @@ -81,7 +81,7 @@ return packer.startup(function(use) use { 'p00f/nvim-ts-rainbow', after = 'nvim-treesitter', - -- Putting config into `treesitter_conf` doesn't work for some reason + -- Putting config into `treesitter_conf` doesn't work for some reason config = editor.rainbow_conf } use {