Add S-Tab mapping to outdent
Update Copilot to use C-a to accept change to avoid conflict with `Tab` for indenting
This commit is contained in:
parent
e8c74fafe4
commit
2f76742b1c
2 changed files with 9 additions and 0 deletions
|
@ -34,6 +34,7 @@ require("config.lazy")
|
|||
vim.keymap.set("n", "<leader>r", ":source %<CR>", { desc = "Reload Config" })
|
||||
vim.keymap.set("n", "<leader>bs", ":vsplit<CR>", { desc = "Vertical Split" })
|
||||
vim.keymap.set("n", "<leader>vm", ":lua vim.diagnostic.open_float()<CR>", { desc = "Show Diagnostic Message" })
|
||||
vim.api.nvim_set_keymap('i', '<S-Tab>', '<C-d>', { noremap = true, silent = true })
|
||||
|
||||
-- remap yank to system clipboard
|
||||
vim.keymap.set("n", "<leader>y", '"+y', { desc = "Yank to Clipboard" })
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
return {
|
||||
{
|
||||
"github/copilot.vim",
|
||||
config = function()
|
||||
vim.keymap.set("i", "<C-a>", 'copilot#Accept()', {
|
||||
expr = true,
|
||||
silent = true,
|
||||
replace_keycodes = false,
|
||||
})
|
||||
vim.g.copilot_no_tab_map = true
|
||||
end,
|
||||
},
|
||||
{
|
||||
"CopilotC-Nvim/CopilotChat.nvim",
|
||||
|
|
Loading…
Reference in a new issue