Merge pull request 'change accept autocomplete with TAB to CTRL+l' (#26) from copilot-enhancement into main

Reviewed-on: #26
This commit was merged in pull request #26.
This commit is contained in:
2026-04-29 12:09:07 +00:00
3 changed files with 9 additions and 2 deletions

View File

@@ -76,6 +76,7 @@ The **Leader Key** is set to `Space`.
### Copilot Code Completion
| Action | Keybinding | Description |
| :--- | :--- | :--- |
| **:Accept suggestion** | `Ctrl + l` | Accept suggested code from Copilot. |
| **:Setup Copilot** | `:Copilot setup` | Authenticate and enable GitHub Copilot (disable cmd popups before proceeding with setup). |
| **:Enable Copilot** | `:Copilot enable` | Enable GitHub Copilot after :Copilot disable. |
| **:Disable Copilot** | `:Copilot disable` | Disable GitHub Copilot inline suggestions. |
@@ -94,7 +95,7 @@ The **Leader Key** is set to `Space`.
### Window Management
| Action | Keybinding | Description |
| :--- | :--- | :--- |
| **Cycle Windows** | `Ctrl + w w` | Cycle focus between open windows (). |
| **Cycle Windows** | `Ctrl + w w` | Cycle focus between open windows. |
| **Move Down** | `Ctrl + w j` | Move focus to the window below. |
| **Move Up** | `Ctrl + w k` | Move focus to the window above. |
| **Move Up** | `Ctrl + w s` | Duplicate window (horizontal). |

View File

@@ -1,4 +1,11 @@
return {
"github/copilot.vim",
lazy = false,
config = function()
vim.g.copilot_no_tab_map = true
vim.keymap.set('i', '<C-l>', 'copilot#Accept("\\<CR>")', {
expr = true,
replace_keycodes = false
})
end,
}

View File

@@ -1,7 +1,6 @@
return {
"nvim-treesitter/nvim-treesitter",
lazy = false,
-- event = { "BufReadPost", "BufNewFile" },
build = ":TSUpdate",
config = function()
require("nvim-treesitter").setup({