-
I have set { '<c-c>', '<nop>', mode = 'i', ft = 'org' },
{ '<c-c><c-l>', '<c-o><c-c><c-l>', mode = 'i', ft = 'org' },
{ '<c-c><c-h>', '<c-o><c-c><c-h>', mode = 'i', ft = 'org' }, When I press vim.loader.enable()
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
spec = {
{
"nvim-orgmode/orgmode",
ft = "org",
keys = {
{ "<c-c>", "<nop>", mode = "i", ft = "org" },
{ "<c-c><c-l>", "<c-o><c-c><c-l>", mode = "i", ft = "org" },
{ "<c-c><c-h>", "<c-o><c-c><c-h>", mode = "i", ft = "org" },
},
opts = {
mappings = {
prefix = "<c-c>",
org = {
org_do_promote = "<c-c><c-h>",
org_do_demote = "<c-c><c-l>",
},
org_return_uses_meta_return = true,
},
},
},
},
})
|
Beta Was this translation helpful? Give feedback.
Answered by
fvrings
Jan 3, 2025
Replies: 1 comment
-
according to
remap is false by default. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fvrings
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
according to
vim.keymap.set
docs:remap is false by default.