style(nvim-cmp.lua): improve code formatting by aligning comments and values for better readability

This commit is contained in:
David Ibia
2024-07-29 01:03:03 +01:00
parent a8403da735
commit d74c40a9af

View File

@@ -15,16 +15,16 @@ cmp.setup({
end, end,
}, },
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions ["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions
["<CR>"] = cmp.mapping.confirm({ select = true }), -- accept current selection ["<CR>"] = cmp.mapping.confirm({ select = true }), -- accept current selection
}), }),
-- sources for autocompletion -- sources for autocompletion
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = "otter" }, -- custom source for otter completion { name = "otter" }, -- custom source for otter completion
{ name = "nvim_lsp" }, { name = "nvim_lsp" },
{ name = "luasnip" }, -- snippets { name = "luasnip" }, -- snippets
{ name = "buffer" }, -- text within current buffer { name = "buffer" }, -- text within current buffer
{ name = "path" }, -- file system paths { name = "path" }, -- file system paths
}), }),
-- configure lspkind for vs-code like pictograms in completion menu -- configure lspkind for vs-code like pictograms in completion menu
formatting = { formatting = {