add cmp git

This commit is contained in:
xfy
2024-09-11 09:18:52 +08:00
parent e7dfe6dcb7
commit 324960653f

View File

@ -2,8 +2,9 @@ return {
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-buffer", -- source for text in buffer
"hrsh7th/cmp-path", -- source for file system paths
"hrsh7th/cmp-buffer", -- source for text in buffer
"hrsh7th/cmp-path", -- source for file system paths
{ "petertriho/cmp-git", opts = {} }, -- source for git
{
"L3MON4D3/LuaSnip",
-- follow latest release.
@ -47,7 +48,8 @@ return {
{ name = "luasnip" }, -- snippets
{ name = "buffer" }, -- text within current buffer
{ name = "path" }, -- file system paths
{ name = "crates" } -- rust crates
{ name = "crates" }, -- rust crates
{ name = "git" },
}),
-- configure lspkind for vs-code like pictograms in completion menu