Remove title from signature or info window #1708
-
Contributing guidelines
Module(s)mini.completion QuestionIs it possible to remove the title of those window ? With mini.notify, we can just make window.config.title an empty string. Also, since handlers changed in neovim 0.11. How can I put a title to the hover window ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Not right now, no. Can I ask what is the motivation here? Personal dislike of titles in floating window or is there some usability issues? The problem with this is that 'mini.completion' only supports selected fields for window config. Others are computed based on the several factors for every execution and exporting them would only bring troubles. It is possible, of course, to export configurable title, but that would also somewhat imply exporting
I am not sure how this relates to 'mini.completion', as it doesn't implement any hover. Can you elaborate, please? |
Beta Was this translation helpful? Give feedback.
-
|
@Gael-Lopes-Da-Silva, I am afraid there was once again a change in a recommended way to adjust titles in 'mini.completion'. There are now dedicated events for when info and signature windows are opened/updated. So the suggested way is now less verbose and more performant. Here is an example: vim.api.nvim_create_autocmd('User', {
pattern = { 'MiniCompletionWindowOpen', 'MiniCompletionWindowUpdate' },
callback = function(ev)
local win_id, kind = ev.data.win_id, ev.data.kind
local config = vim.api.nvim_win_get_config(win_id)
-- Change to `config.title = ''` to not show title
config.title = 'Custom ' .. kind
vim.api.nvim_win_set_config(win_id, config)
end,
})Sorry for the trouble. |
Beta Was this translation helpful? Give feedback.
@Gael-Lopes-Da-Silva, I am afraid there was once again a change in a recommended way to adjust titles in 'mini.completion'. There are now dedicated events for when info and signature windows are opened/updated.
So the suggested way is now less verbose and more performant. Here is an example:
Sorry f…