Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barklan/cmp-gitlog
Suggest completions based on file history (for nvim-cmp).
https://github.com/barklan/cmp-gitlog
neovim neovim-plugin nvim-cmp ripgrep
Last synced: 3 months ago
JSON representation
Suggest completions based on file history (for nvim-cmp).
- Host: GitHub
- URL: https://github.com/barklan/cmp-gitlog
- Owner: barklan
- License: mit
- Created: 2022-05-24T09:57:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-06T16:43:42.000Z (over 2 years ago)
- Last Synced: 2024-05-05T16:30:50.081Z (7 months ago)
- Topics: neovim, neovim-plugin, nvim-cmp, ripgrep
- Language: Lua
- Homepage:
- Size: 66.4 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cmp-gitlog
Suggest completions based on git file history (`git log -p `) for [nvim-cmp](https://github.com/hrsh7th/nvim-cmp).
**Based on [lukas-reineke/cmp-rg](https://github.com/lukas-reineke/cmp-rg).**![screenshot](screenshot.png)
## Requirements
- Linux or MacOS
- [ripgrep](https://github.com/BurntSushi/ripgrep)
- Neovim 0.7.0+ and [nvim-cmp](https://github.com/hrsh7th/nvim-cmp)## Installation
Example via [packer](https://github.com/wbthomason/packer.nvim):
```lua
use("barklan/cmp-gitlog")
```## Setup
Add `gitlog` to your cmp sources:
```lua
require("cmp").setup({
sources = {
{ name = "gitlog", max_item_count = 5 },
}
})
```