Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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).

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 },
}
})
```