You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I copied the cmdline_popup and modified it for when macros are being recorded.
After getting lost in the docs between views, formats, and routes, I still don't know how to:
Change the text color from green to red (see screenshot)
Add icon and title to the floating window like this:
My config
return {
lsp= {
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**override= {
["vim.lsp.util.convert_input_to_markdown_lines"] =true,
["vim.lsp.util.stylize_markdown"] =true,
["cmp.entry.get_documentation"] =true, -- requires hrsh7th/nvim-cmp
},
},
-- you can enable a preset for easier configurationpresets= {
bottom_search=true, -- use a classic bottom cmdline for searchcommand_palette=true, -- position the cmdline and popupmenu togetherlong_message_to_split=true, -- long messages will be sent to a splitlsp_doc_border=false, -- add a border to hover docs and signature help
},
views= {
virtualtext= {
hl_group="LspInlayHint",
},
-- Custom view for macro recording.macro_recording= {
backend="popup",
relative="editor",
focusable=false,
enter=false,
zindex=200,
position= {
row=3,
col="50%",
},
size= {
min_width=30,
width="auto",
height="auto",
},
border= {
style="rounded",
padding= { 0, 1 },
},
win_options= {
winhighlight= {
FloatTitle="NoiceFormatLevelError",
FloatBorder="NoiceFormatLevelError",
},
winbar="",
foldenable=false,
cursorline=false,
},
},
},
routes= {
-- Show macro "@recording" when q-<register> is pressed.
{
view="macro_recording",
filter= { event="msg_showmode" },
},
},
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I copied the cmdline_popup and modified it for when macros are being recorded.
After getting lost in the docs between views, formats, and routes, I still don't know how to:
My config
Beta Was this translation helpful? Give feedback.
All reactions