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()
|
||||
local cmp = require("cmp")
|
||||
|
||||
cmp.setup({
|
||||
window = {
|
||||
completion = cmp.config.window.bordered({
|
||||
border = "rounded",
|
||||
scrollbar = false,
|
||||
}),
|
||||
documentation = cmp.config.window.bordered({
|
||||
border = "rounded",
|
||||
scrollbar = false,
|
||||
}),
|
||||
},
|
||||
snippet = {
|
||||
expand = function(args) require("luasnip").lsp_expand(args.body) end,
|
||||
},
|
||||
@@ -98,9 +109,11 @@ return {
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "luasnip" },
|
||||
}, {
|
||||
{ name = "buffer" },
|
||||
{ name = "path" },
|
||||
}),
|
||||
{ name = "buffer" },
|
||||
{ name = "path" },
|
||||
}),
|
||||
performance = { max_view_entries = 25 },
|
||||
|
||||
})
|
||||
end
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user