this repo has no description
1return {
2 {
3 "hrsh7th/nvim-cmp",
4 config = function()
5 local cmp = require("cmp")
6 cmp.setup({
7 sources = {
8 { name = "nvim_lsp" },
9 },
10 snippet = {
11 expand = function(args)
12 vim.snippet.expand(args.body)
13 end,
14 },
15 mapping = cmp.mapping.preset.insert({
16 ["<CR>"] = cmp.mapping.confirm({ select = true }),
17 }),
18 })
19 end,
20 },
21 {
22 "hrsh7th/cmp-nvim-lsp",
23 dependencies = {
24 "neovim/nvim-lspconfig",
25 "hrsh7th/nvim-cmp",
26 },
27 opts = {},
28 },
29}