refactor(nvim): make C-Tab insert alt tab

This commit is contained in:
Price Hiller 2023-10-22 02:28:36 -05:00
parent 7ff77952e1
commit a347d53ab8
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -94,7 +94,7 @@ M.setup = function()
vim.keymap.set("n", "<A-s>", ":bnext<CR>", { silent = true, desc = "Go to Next Buffer" })
-- Binding to insert literal tab
vim.keymap.set("i", "<S-Tab>", function()
vim.keymap.set("i", "<C-Tab>", function()
if vim.opt_local.expandtab:get() then
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("<C-V><TAB>", true, false, true), "m", true)
else