AutoYADM commit: 2025-02-06 23:15:03
This commit is contained in:
parent
da8da40689
commit
774ad96650
1 changed files with 25 additions and 0 deletions
|
@ -5,6 +5,31 @@ local opt = vim.opt
|
||||||
opt.scrolloff = 2
|
opt.scrolloff = 2
|
||||||
-- vim.api.nvim_set_hl(0, "OrgBulletsDash", { fg = "#FFFFFF" })
|
-- vim.api.nvim_set_hl(0, "OrgBulletsDash", { fg = "#FFFFFF" })
|
||||||
|
|
||||||
|
local function escape(str)
|
||||||
|
-- You need to escape these characters to work correctly
|
||||||
|
local escape_chars = [[;,."|\]]
|
||||||
|
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.keymap.set("n", "m", function()
|
||||||
|
vim.notify("presed")
|
||||||
|
end)
|
||||||
|
vim.opt.langmap = "mhnjekilhilejnkm"
|
||||||
|
|
||||||
vim.g.maplocalleader = ","
|
vim.g.maplocalleader = ","
|
||||||
vim.g.lazyvim_python_lsp = "basedpyright"
|
vim.g.lazyvim_python_lsp = "basedpyright"
|
||||||
-- vim.g.lazyvim_rust_diagnostics = "bacon-ls"
|
-- vim.g.lazyvim_rust_diagnostics = "bacon-ls"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue