Can't change mini.completion's signature window's max width #2175
-
Contributing guidelines
Module(s)mini.completion QuestionI am trying to change max width for mini.completion signature window. Currently, due to length of some signatures the window can growth out of bounds of the screen. This also makes info's window too narrow. And here's the configuration: require('mini.completion').setup({
window = {
info = { height = 25, width = 80, border = "single" },
signature = { height = 25, width = 40, border = "single" },
},
lsp_completion = {
-- Without this config autocompletion is set up through `:h 'completefunc'`.
-- Although not needed, setting up through `:h 'omnifunc'` is cleaner
-- (sets up only when needed) and makes it possible to use `<C-u>`.
source_func = 'omnifunc',
auto_setup = false,
process_items = process_items,
},
})Is there's something wrong with my configuration or should I specify the window's max width somewhere else? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Yes, this is how to configure dimensions of a signature window and it works (I've just tested). What the screenshot shows is not a signature window, but a "regular" completion menu that shows candidates. Is that what you are trying to limit width of? If yes, then (since 'mini.completion' uses built-in Insert mode completion popup menu for that, see |
Beta Was this translation helpful? Give feedback.

Yes, this is how to configure dimensions of a signature window and it works (I've just tested).
What the screenshot shows is not a signature window, but a "regular" completion menu that shows candidates. Is that what you are trying to limit width of?
If yes, then (since 'mini.completion' uses built-in Insert mode completion popup menu for that, see
:h ins-completion-menu) this only became possible fairly recently with:h 'pummaxwidth'option. It is only available on Nightly Neovim>=0.12 and can be set with something likevim.o.pummaxwidth = 40in the 'init.lua'. Edit: adjusted wrongvim.ousage example.