AutoYADM commit: 2025-02-06 23:45:03
This commit is contained in:
parent
6a171a7bba
commit
93347ae156
2 changed files with 4 additions and 15 deletions
|
@ -11,24 +11,11 @@ local function escape(str)
|
|||
return vim.fn.escape(str, escape_chars)
|
||||
end
|
||||
|
||||
-- Recommended to use lua template string
|
||||
local qwerty = [[kjlh]]
|
||||
local qwerty_shift = [[KJLH]]
|
||||
local colemak = [[mnei]]
|
||||
local colemak_shift = [[MNEI]]
|
||||
|
||||
vim.opt.langmap = vim.fn.join({
|
||||
-- | `to` should be first | `from` should be second
|
||||
escape(colemak_shift)
|
||||
.. ";"
|
||||
.. escape(qwerty_shift),
|
||||
escape(colemak) .. ";" .. escape(qwerty),
|
||||
}, ",")
|
||||
|
||||
vim.g.maplocalleader = ","
|
||||
vim.g.mapleader = " "
|
||||
vim.opt.langmap = "mhnjekilhilejnkm"
|
||||
vim.keymap.set("n", "<leader>m", function()
|
||||
vim.keymap.set("n", "<leader><BS>", "<leader><CR>", { remap = true })
|
||||
vim.keymap.set("n", "<leader><CR>", function()
|
||||
vim.notify("presed")
|
||||
end)
|
||||
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
return {
|
||||
"Wansmer/langmapper.nvim",
|
||||
enabled = false,
|
||||
lazy = false,
|
||||
priority = 1500, -- High priority is needed if you will use `autoremap()`
|
||||
config = function()
|
||||
require("langmapper").setup({})
|
||||
require("langmapper").automapping({ global = true, buffer = true })
|
||||
require("langmapper").autoremap({ global = true, buffer = true })
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue