Revert "feat: add <C-é> mapping for <C-w>"

This is not supported widely enough, the <C-é> mapping does not work.

This reverts commit 9491e9efa56f6004bcc19f7a5985e417e4d3c195.
This commit is contained in:
Clément Joly 2022-08-23 23:40:09 +01:00 committed by Clément Joly
parent 354a6b5ea5
commit 5d68c5666b
2 changed files with 0 additions and 13 deletions

View File

@ -15,11 +15,6 @@
;;
;; Credit: Inspired by https://github.com/michamos/vim-bepo by Micha Moskovic
(fn map-cmd-insert [key target]
"For insert and command mode"
(vim.api.nvim_set_keymap "" key target {:noremap true})
nil)
(fn map-text-object [key target]
"For text-objects mappings"
(vim.api.nvim_set_keymap :o key target {:noremap true})
@ -49,7 +44,6 @@
(fn fun-to-mods [fun]
"Converts a function to the modes it sets mappings for"
(match (tostring fun)
:map-cmd-insert :ic
:map-text-object :ox
:map-visual :x
:map-normal :n
@ -113,8 +107,6 @@
(map-text-object "aÉ" :aW) ;; idem pour [iw] et [ié]
(map-text-object "ié" :iw) ;; idem pour [iW] et [iÉ]
(map-text-object "iÉ" :iW))
;; Pareil pour <C-w> en mode insertion et commande
(map-cmd-insert "<C-é>" "<C-w>")
(𝛅 mapping-window [] "[w] est libre pour faire <C-w>, grâce à easy_access"
(map-normal :w :<C-w>) ;; et [w] pour faire <C-w><C-w>

5
lua/bepo.lua generated
View File

@ -1,7 +1,3 @@
local function map_cmd_insert(key, target)
vim.api.nvim_set_keymap("", key, target, {noremap = true})
return nil
end
local function map_text_object(key, target)
vim.api.nvim_set_keymap("o", key, target, {noremap = true})
vim.api.nvim_set_keymap("x", key, target, {noremap = true})
@ -64,7 +60,6 @@ local function mapping_easy_access()
map_text_object("i\195\169", "iw")
return map_text_object("i\195\137", "iW")
end
map_cmd_insert("<C-\195\169>", "<C-w>")
local function mapping_window()
map_normal("w", "<C-w>")
map_normal("W", "<C-w><C-w>")