This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
opdavies.nvim/after/plugin/noice.lua

67 lines
1.8 KiB
Lua
Raw Normal View History

2023-08-29 20:46:02 +00:00
local status_ok, noice = pcall(require, "noice")
if not status_ok then
return
end
local notify = require 'notify'
noice.setup({
cmdline = {
format = {
cmdline = { icon = ">" },
filter = { icon = "$" },
help = { icon = "?" },
lua = { icon = "" },
search_down = { icon = "🔍⌄" },
search_up = { icon = "🔍⌃" },
},
},
lsp = {
override = {
["cmp.entry.get_documentation"] = true,
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
},
},
popupmenu = {
kind_icons = false,
},
presets = {
bottom_search = true,
command_palette = true,
inc_rename = false,
long_message_to_split = true,
lsp_doc_border = false,
},
})
notify.setup({
background_colour = "#1e222a",
render = "minimal",
stages = "static",
timeout = 5000,
})
vim.cmd [[
highlight NotifyERRORBorder guifg=#ED8796
highlight NotifyWARNBorder guifg=#EED49F
highlight NotifyINFOBorder guifg=#A6DA95
highlight NotifyDEBUGBorder guifg=#B8C0E0
highlight NotifyTRACEBorder guifg=#C6A0F6
highlight NotifyERRORIcon guifg=#ED8796
highlight NotifyWARNIcon guifg=#EED49F
highlight NotifyINFOIcon guifg=#A6DA95
highlight NotifyDEBUGIcon guifg=#B8C0E0
highlight NotifyTRACEIcon guifg=#C6A0F6
highlight NotifyERRORTitle guifg=#ED8796
highlight NotifyWARNTitle guifg=#EED49F
highlight NotifyINFOTitle guifg=#A6DA95
highlight NotifyDEBUGTitle guifg=#B8C0E0
highlight NotifyTRACETitle guifg=#C6A0F6
highlight link NotifyERRORBody Normal
highlight link NotifyWARNBody Normal
highlight link NotifyINFOBody Normal
highlight link NotifyDEBUGBody Normal
highlight link NotifyTRACEBody Normal
]]