From a71cee92de57c03a7c170488a4e88c950b1c536d Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 20 Aug 2024 09:16:31 +0200 Subject: nvim: add colorhighlight plugin --- .config/nvim/lua/plugins/cmp.lua | 3 ++- .config/nvim/lua/plugins/misc.lua | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index a8e04d7..81cd6cd 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua @@ -113,7 +113,8 @@ return { buffer = "[󰮳 ]", path = "[ ]", })[entry.source.name] - return vim_item + -- return vim_item + return require("nvim-highlight-colors").format(entry, vim_item) end, }, sources = { diff --git a/.config/nvim/lua/plugins/misc.lua b/.config/nvim/lua/plugins/misc.lua index f99051e..fc28ffa 100644 --- a/.config/nvim/lua/plugins/misc.lua +++ b/.config/nvim/lua/plugins/misc.lua @@ -80,4 +80,11 @@ return { npairs.add_rule(Rule('%"', '%"', "remind")) end }, + { + "brenoprata10/nvim-highlight-colors", + event = { "BufReadPost", "VeryLazy" }, + config = function() + require('nvim-highlight-colors').setup({}) + end + } } -- cgit v1.2.3-70-g09d2