yadm-git.nvim is a lightweight Neovim plugin that enables you to use Neovim's built-in Git features to manage your dotfiles (home directory) tracked by yadm.
This plugin automatically detects if you're editing files under yadm's control
(e.g. $HOME/.config
, $HOME/.bashrc
, etc.), and sets appropriate Git
environment variables so that Git-based plugins (like gitsigns.nvim
, fugitive
,
lazygit.nvim
, etc.) can function properly within the yadm repository.
No commands. No user interaction. It just works.
use {
'Kohei-Wada/yadm-git.nvim',
config = function()
require('yadm-git').setup({
debug = true, -- Enable debug logging (default: false)
})
end,
}
Plug 'Kohei-Wada/yadm-git.nvim'
-- init.lua or vimrc
require('yadm-git').setup({
debug = false,
})
return {
"Kohei-Wada/yadm-git.nvim",
lazy = true,
event = "VeryLazy",
}
Option | Type | Default | Description |
---|---|---|---|
debug | boolean | false | Enable debug logging (vim.notify) |
Open Neovim in your home directory (or any directory managed by yadm) and the plugin will automatically set GIT_DIR
and GIT_WORK_TREE
. This ensures Git commands like :Gstatus
and :Gdiff
operate on your dotfiles repository.
Bug reports and pull requests are welcome!