diff --git a/README.md b/README.md index 8143066..a49d32c 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Add `git_coauthors` to your nvim-cmp sources for the gitcommit filetype. 2. Type `@` to trigger handle completion 3. Select a handle to insert the full `Name ` -Handles are loaded from a JSON file at `vim.fn.stdpath('data') .. '/git-coauthors/handles.json'`: +Handles are loaded from a JSON file at `~/.local/share/nvim/git-coauthors/handles.json`: ```json { @@ -90,7 +90,7 @@ require('git-coauthors').setup({ | Option | Default | Description | | --- | --- | --- | -| `handles_path` | `stdpath('data') .. '/git-coauthors/handles.json'` | Path to the JSON handles file | +| `handles_path` | `~/.local/share/nvim/git-coauthors/handles.json` | Path to the JSON handles file | | `handles` | `nil` | Inline handles (merged over file, inline wins on duplicates) | ## Snippet diff --git a/doc/git-coauthors.nvim.txt b/doc/git-coauthors.nvim.txt index 5b4b95a..41ee062 100644 --- a/doc/git-coauthors.nvim.txt +++ b/doc/git-coauthors.nvim.txt @@ -69,8 +69,8 @@ USAGE *git-coauthors.nvim-git-coauthors.nvim-usage* 2. Type `@` to trigger handle completion 3. Select a handle to insert the full `Name ` -Handles are loaded from a JSON file at `vim.fn.stdpath('data') .. -'/git-coauthors/handles.json'`: +Handles are loaded from a JSON file at +`~/.local/share/nvim/git-coauthors/handles.json`: >json { @@ -110,16 +110,16 @@ Pass options via blink.cmp’s provider `opts` or }) < - -------------------------------------------------------------------------------------------------- - Option Default Description - ----------------------- -------------------------------------------------- ----------------------- - handles_path stdpath('data') .. '/git-coauthors/handles.json' Path to the JSON - handles file + ------------------------------------------------------------------------------------------------ + Option Default Description + ----------------------- ------------------------------------------------ ----------------------- + handles_path ~/.local/share/nvim/git-coauthors/handles.json Path to the JSON + handles file - handles nil Inline handles (merged - over file, inline wins - on duplicates) - -------------------------------------------------------------------------------------------------- + handles nil Inline handles (merged + over file, inline wins + on duplicates) + ------------------------------------------------------------------------------------------------ SNIPPET *git-coauthors.nvim-git-coauthors.nvim-snippet*