change accept autocomplete with TAB to CTRL+l #26
@@ -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). |
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
lazy = false,
|
||||
-- event = { "BufReadPost", "BufNewFile" },
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
require("nvim-treesitter").setup({
|
||||
|
||||
Reference in New Issue
Block a user