Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/WhoIsSethDaniel/chezmoi.nvim

Edit chezmoi files with neovim as you normally would and have them added to chezmoi source state.
https://github.com/WhoIsSethDaniel/chezmoi.nvim

chezmoi neovim neovim-plugin nvim-plugin

Last synced: about 1 month ago
JSON representation

Edit chezmoi files with neovim as you normally would and have them added to chezmoi source state.

Awesome Lists containing this project

README

        

# Description

[chezmoi](https://github.com/twpayne/chezmoi) integration with Neovim. Edit files, as normal, with Neovim
and have changes automatically placed in the Chezmoi source state. Also add and remove files from Chezmoi
source state from within Neovim.

This shows editing of a file that is Chezmoi managed (notice the [CM] in the status bar) followed by
editing a file that is not Chezmoi managed (notice no [CM] in the status bar).

This shows the commands that add and forget the current file.

## Compatibility
Neovim >= 0.5.0

## Installation
Install using your favorite plugin manager. Make certain you have [chezmoi](https://github.com/twpayne/chezmoi)
installed.

If you use vim-plug:
```vim
Plug 'WhoIsSethDaniel/chezmoi.nvim'
```
Or if you use Vim 8 style packages:
```
cd
git clone https://github.com/WhoIsSethDaniel/chezmoi.nvim
```

## Configuration

Somewhere in your configuration you will need:
```lua
require"chezmoi".setup()
```
You can pass configuration to setup().
```lua
require"chezmoi".setup({
exec = "chezmoi.new",
auto_add = true, -- the default is true
add_options = '--empty'
})
```
If you are using Vimscript for configuration:
```vim
lua <