Different highlight groups for titles of search and cmdline #739
Answered
by
Sam-programs
JacquesCherbuin
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
Sam-programs
Feb 24, 2024
Replies: 1 comment 4 replies
-
You can specify a view per format. format = {
cmdline = { ... , view = "cmdline_normal" },
} You can create custom views from the examples in noice.config.views, or copy them and modify Here is an exmaple for making the cmdline's title highlight local cmdline_normal = vim.deepcopy(require('noice.config.views').defaults.cmdline_popup)
cmdline_normal.win_options.winhighlight.FloatTitle = "Visual"
require("noice").setup({
views = {
cmdline_normal = cmdline_normal,
},
cmdline = {
-- Default view for other formats
view = "cmdline_popup",
format = {
cmdline = { pattern = "^:", icon = "", lang = "vim", view = "cmdline_normal" },
},
},
}) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
JacquesCherbuin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can specify a view per format.
You can create custom views from the examples in noice.config.views, or copy them and modify
FloatTitle
.Here is an exmaple for making the cmdline's title highlight
Visual
: