feat(nvim): map <S-Space> to <Space> in terminals

This commit is contained in:
Price Hiller 2023-08-31 21:51:07 -05:00
parent 395bf77a2c
commit 007c26e3aa
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -73,6 +73,10 @@ M.setup = function()
vim.api.nvim_feedkeys(spaces, "m", false)
end
end, { silent = true, desc = "Insert Literal Tab" })
-- Binding to keep S-Space in terminals from not sending <Space>
vim.keymap.set("t", "<S-Space>", "<Space>",
{ silent = true, desc = "Terminal: Hack S-Space to Space" })
end
return M