summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
authorYigit Sever2024-08-20 09:16:31 +0200
committerYigit Sever2024-08-20 09:18:37 +0200
commita71cee92de57c03a7c170488a4e88c950b1c536d (patch)
treee9b8c0eb0a094296bbf0f224e48b99a92fd2195d /.config/nvim
parent548a3f7fb7bbc276cc773d2d578c6abfb62e8da0 (diff)
downloaddotfiles-a71cee92de57c03a7c170488a4e88c950b1c536d.tar.gz
dotfiles-a71cee92de57c03a7c170488a4e88c950b1c536d.tar.bz2
dotfiles-a71cee92de57c03a7c170488a4e88c950b1c536d.zip
nvim: add colorhighlight plugin
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/plugins/cmp.lua3
-rw-r--r--.config/nvim/lua/plugins/misc.lua7
2 files changed, 9 insertions, 1 deletions
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 {
113 buffer = "[󰮳 ]", 113 buffer = "[󰮳 ]",
114 path = "[ ]", 114 path = "[ ]",
115 })[entry.source.name] 115 })[entry.source.name]
116 return vim_item 116 -- return vim_item
117 return require("nvim-highlight-colors").format(entry, vim_item)
117 end, 118 end,
118 }, 119 },
119 sources = { 120 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 {
80 npairs.add_rule(Rule('%"', '%"', "remind")) 80 npairs.add_rule(Rule('%"', '%"', "remind"))
81 end 81 end
82 }, 82 },
83 {
84 "brenoprata10/nvim-highlight-colors",
85 event = { "BufReadPost", "VeryLazy" },
86 config = function()
87 require('nvim-highlight-colors').setup({})
88 end
89 }
83} 90}