Add kbenzie/cmp-git plugin

This is a fork of https://github.com/petertriho/cmp-git with a revert of
a bug fix that appears to have introduced a bug.
This commit is contained in:
Kenneth Benzie 2024-04-11 22:43:22 +01:00
parent f254665710
commit 959e9e5c52

View File

@ -10,7 +10,7 @@ return {
'hrsh7th/cmp-nvim-lsp', -- Source for built-in language server client 'hrsh7th/cmp-nvim-lsp', -- Source for built-in language server client
'hrsh7th/cmp-buffer', -- Source for buffer words 'hrsh7th/cmp-buffer', -- Source for buffer words
'hrsh7th/cmp-path', -- Source for filesystem paths 'hrsh7th/cmp-path', -- Source for filesystem paths
'hrsh7th/cmp-cmdline', -- Source for command-line 'kbenzie/cmp-git', -- Source for Git/GitHub/GitLab
'hrsh7th/nvim-cmp', -- Completion engine combines and use the above 'hrsh7th/nvim-cmp', -- Completion engine combines and use the above
-- LSP UI plugins -- LSP UI plugins
@ -118,7 +118,7 @@ return {
{ name = 'luasnip' }, { name = 'luasnip' },
{ name = 'buffer' }, { name = 'buffer' },
{ name = 'path' }, { name = 'path' },
-- { name = 'cmdline' }, { name = 'git' },
}, },
window = { window = {
@ -126,6 +126,7 @@ return {
documentation = cmp.config.window.bordered(), documentation = cmp.config.window.bordered(),
}, },
}) })
require("cmp_git").setup({})
-- Customise LSP UI -- Customise LSP UI
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with( vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(