change accept autocomplete with TAB to CTRL+l
This commit is contained in:
@@ -76,6 +76,7 @@ The **Leader Key** is set to `Space`.
|
|||||||
### Copilot Code Completion
|
### Copilot Code Completion
|
||||||
| Action | Keybinding | Description |
|
| 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). |
|
| **: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. |
|
| **:Enable Copilot** | `:Copilot enable` | Enable GitHub Copilot after :Copilot disable. |
|
||||||
| **:Disable Copilot** | `:Copilot disable` | Disable GitHub Copilot inline suggestions. |
|
| **:Disable Copilot** | `:Copilot disable` | Disable GitHub Copilot inline suggestions. |
|
||||||
@@ -94,7 +95,7 @@ The **Leader Key** is set to `Space`.
|
|||||||
### Window Management
|
### Window Management
|
||||||
| Action | Keybinding | Description |
|
| 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 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 k` | Move focus to the window above. |
|
||||||
| **Move Up** | `Ctrl + w s` | Duplicate window (horizontal). |
|
| **Move Up** | `Ctrl + w s` | Duplicate window (horizontal). |
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
return {
|
return {
|
||||||
"github/copilot.vim",
|
"github/copilot.vim",
|
||||||
lazy = false,
|
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 {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
-- event = { "BufReadPost", "BufNewFile" },
|
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-treesitter").setup({
|
require("nvim-treesitter").setup({
|
||||||
|
|||||||
Reference in New Issue
Block a user