mirror of
https://github.com/Ascyii/nvim.git
synced 2026-01-01 04:04:24 -05:00
Better cmp
This commit is contained in:
@@ -84,7 +84,18 @@ return {
|
|||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
|
window = {
|
||||||
|
completion = cmp.config.window.bordered({
|
||||||
|
border = "rounded",
|
||||||
|
scrollbar = false,
|
||||||
|
}),
|
||||||
|
documentation = cmp.config.window.bordered({
|
||||||
|
border = "rounded",
|
||||||
|
scrollbar = false,
|
||||||
|
}),
|
||||||
|
},
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args) require("luasnip").lsp_expand(args.body) end,
|
expand = function(args) require("luasnip").lsp_expand(args.body) end,
|
||||||
},
|
},
|
||||||
@@ -101,6 +112,8 @@ return {
|
|||||||
{ name = "buffer" },
|
{ name = "buffer" },
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
}),
|
}),
|
||||||
|
performance = { max_view_entries = 25 },
|
||||||
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user