···
1
+
*baredot.nvim.txt* For Neovim >= 0.9.0 Last change: 2024 June 17
3
+
==============================================================================
4
+
Table of Contents *baredot.nvim-table-of-contents*
6
+
1. Baredot |baredot.nvim-baredot|
7
+
- Details |baredot.nvim-baredot-details|
8
+
- Setup |baredot.nvim-baredot-setup|
9
+
- Configuration |baredot.nvim-baredot-configuration|
10
+
- Commands |baredot.nvim-baredot-commands|
11
+
- Functions |baredot.nvim-baredot-functions|
13
+
==============================================================================
14
+
1. Baredot *baredot.nvim-baredot*
16
+
This is a Neovim plugin to automatically adjust `git` env vars when syncing
17
+
dotfiles using the "bare git repo" method:
19
+
Dotfiles: Best way to store in a bare git repository
20
+
<https://www.atlassian.com/git/tutorials/dotfiles>
23
+
DETAILS *baredot.nvim-baredot-details*
25
+
When launching and when changing directory (eg. `:cd`), the plugin will detect
26
+
if the current directory is in a git repo by searching for a `.git` folder.
28
+
- If a `.git` folder is found, the env vars are cleared and `git` will work as normal.
29
+
- If a `.git` folder is not found, and we are in `$HOME`, the env vars will be adjusted to use the
30
+
bare git repo. This will let other git plugins function using that repo.
33
+
SETUP *baredot.nvim-baredot-setup*
39
+
"ejrichards/baredot.nvim",
41
+
git_dir = "~/.cfg" -- Change this path
47
+
CONFIGURATION *baredot.nvim-baredot-configuration*
51
+
-- These two options set the GIT_DIR and GIT_WORK_TREE env vars
52
+
-- They are expanded using "vim.fn.expand"
54
+
git_work_tree = "~",
55
+
-- Filename pattern to find that will disable Baredot
56
+
disable_pattern = "%.git"
61
+
COMMANDS *baredot.nvim-baredot-commands*
63
+
- `:BaredotInfo` - Print current status
64
+
- `:BaredotToggle` - Manually toggle the env vars on / off
67
+
FUNCTIONS *baredot.nvim-baredot-functions*
69
+
- `require("baredot").info()` - Print current status
70
+
- `require("baredot").toggle()` - Manually toggle the env vars on / off
71
+
- `require("baredot").set(boolean)` - Set the env vars on / off
73
+
Generated by panvimdoc <https://github.com/kdheepak/panvimdoc>
75
+
vim:tw=78:ts=8:noet:ft=help:norl: