enc: update notify background

This commit is contained in:
Pojok Code 2024-11-04 20:12:57 +07:00
parent 70e40989c9
commit f5e3f130e4
4 changed files with 12 additions and 11 deletions

View file

@ -80,7 +80,7 @@ return {
formatting = {
fields = { "kind", "abbr", "menu" },
format = function(entry, vim_item)
vim_item.menu = vim_item.kind
vim_item.menu = vim.api.nvim_get_mode().mode == "c" and "" or vim_item.kind
vim_item.kind = string.format("%s", require("user.icons")["kind"][vim_item.kind])
-- vim_item.menu = ({
-- nvim_lsp = "(LSP)",

View file

@ -19,14 +19,15 @@ return {
max_width = function()
return math.floor(vim.o.columns * 0.75)
end,
render = "wrapped-compact",
},
-- event = "BufWinEnter",
config = function()
config = function(_, opts)
local notify = require("notify")
-- this for transparency
-- notify.setup { background_colour = "#000000", render = "compact" }
-- notify.setup({ render = "compact" })
notify.setup({ render = "wrapped-compact" })
notify.setup(opts)
-- this overwrites the vim notify function
vim.notify = notify.notify
end,