Skip to content

Commit b72656b

Browse files
committed
fix(nvim): completion popups did not take up all space
Maybe can remove this if hrsh7th/nvim-cmp#1859 gets merged.
1 parent 21a5d2d commit b72656b

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.config/nvim/lua/plugins/lsp.lua

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,19 @@ return {
162162
}),
163163
},
164164
}
165-
return vim.tbl_deep_extend("keep", new_options, opts)
165+
local final_options = vim.tbl_deep_extend("keep", new_options, {
166+
window = {
167+
completion = {
168+
-- use all available space
169+
max_height = 0,
170+
},
171+
documentation = {
172+
-- use all available space
173+
max_height = 0,
174+
},
175+
},
176+
}, opts)
177+
return final_options
166178
end,
167179
},
168180
},

0 commit comments

Comments
 (0)