mirror of
https://github.com/hrsh7th/nvim-cmp
synced 2024-09-08 00:45:41 +02:00
Docs: fix README.md by adding setup for cmp-git (#1914)
This commit is contained in:
parent
8f3c541407
commit
cd2cf0c124
1 changed files with 5 additions and 3 deletions
|
@ -93,14 +93,16 @@ lua <<EOF
|
|||
})
|
||||
})
|
||||
|
||||
-- To use git you need to install the plugin petertriho/cmp-git and uncomment lines below
|
||||
-- Set configuration for specific filetype.
|
||||
cmp.setup.filetype('gitcommit', {
|
||||
--[[ cmp.setup.filetype('gitcommit', {
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'git' }, -- You can specify the `git` source if [you were installed it](https://github.com/petertriho/cmp-git).
|
||||
{ name = 'git' },
|
||||
}, {
|
||||
{ name = 'buffer' },
|
||||
})
|
||||
})
|
||||
})
|
||||
require("cmp_git").setup() ]]--
|
||||
|
||||
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
|
||||
cmp.setup.cmdline({ '/', '?' }, {
|
||||
|
|
Loading…
Reference in a new issue