Skip to content
Discussion options

You must be logged in to vote

@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 f…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@Gael-Lopes-Da-Silva
Comment options

@echasnovski
Comment options

@Gael-Lopes-Da-Silva
Comment options

@echasnovski
Comment options

@echasnovski
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.completion wiki Solution is present (or should be present) in wiki
2 participants