Files
dotfiles/.config/nvim/lua/plugins/nvim-cmp.lua
2025-08-08 22:00:55 -04:00

28 lines
592 B
Lua

return {
"hrsh7th/nvim-cmp",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
},
config = function()
local cmp = require("cmp")
cmp.setup({
snippet = {
expand = function(args)
vim.snippet.expand(args.body)
end
},
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered()
},
sources = cmp.config.sources({
{ name = "nvim_lsp" },
},
{{ name = "buffer"}})
})
end
}