Skip to content

Commit f94b626

Browse files
authored
docs: simplify recommended mappings (#713)
1 parent abe6dfb commit f94b626

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

doc/codecompanion.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*codecompanion.txt* For NVIM v0.10.0 Last change: 2025 January 23
1+
*codecompanion.txt* For NVIM v0.10.0 Last change: 2025 January 27
22

33
==============================================================================
44
Table of Contents *codecompanion-table-of-contents*
@@ -10,7 +10,7 @@ Table of Contents *codecompanion-table-of-contents*
1010
FEATURES *codecompanion-features*
1111

1212
- Copilot Chat <https://github.com/features/copilot> meets Zed AI <https://zed.dev/blog/zed-ai>, in Neovim
13-
- Support for Anthropic, Copilot, Gemini, Ollama, OpenAI, Azure OpenAI, HuggingFace and xAI LLMs (or bring your own!)
13+
- Support for Anthropic, Copilot, DeepSeek, Gemini, Ollama, OpenAI, Azure OpenAI, HuggingFace and xAI LLMs (or bring your own!)
1414
- Inline transformations, code creation and refactoring
1515
- Variables, Slash Commands, Agents/Tools and Workflows to improve LLM output
1616
- Built in prompt library for common tasks like advice on LSP errors and code explanations

doc/getting-started.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,8 @@ However, there are multiple options available:
166166
For an optimum plugin workflow, I recommend the following:
167167

168168
```lua
169-
vim.api.nvim_set_keymap("n", "<C-a>", "<cmd>CodeCompanionActions<cr>", { noremap = true, silent = true })
170-
vim.api.nvim_set_keymap("v", "<C-a>", "<cmd>CodeCompanionActions<cr>", { noremap = true, silent = true })
171-
vim.api.nvim_set_keymap("n", "<LocalLeader>a", "<cmd>CodeCompanionChat Toggle<cr>", { noremap = true, silent = true })
172-
vim.api.nvim_set_keymap("v", "<LocalLeader>a", "<cmd>CodeCompanionChat Toggle<cr>", { noremap = true, silent = true })
169+
vim.api.nvim_set_keymap({ "n", "v" }, "<C-a>", "<cmd>CodeCompanionActions<cr>", { noremap = true, silent = true })
170+
vim.api.nvim_set_keymap({ "n", "v" }, "<LocalLeader>a", "<cmd>CodeCompanionChat Toggle<cr>", { noremap = true, silent = true })
173171
vim.api.nvim_set_keymap("v", "ga", "<cmd>CodeCompanionChat Add<cr>", { noremap = true, silent = true })
174172

175173
-- Expand 'cc' into 'CodeCompanion' in the command line

0 commit comments

Comments
 (0)