1
0
chezmoi/home/dot_config/lvim/lua/user/keybindings.lua

36 lines
951 B
Lua
Raw Normal View History

2024-01-07 00:37:50 +00:00
--[[--
File : conf.d/lvim/lua/user/keybindings.lua
Author : Jeff Lance <email@jefflance.me>
Date : 28.12.2023 20:32:45
Last Modified Date: 29.12.2023 22:35:31
Last Modified By : Jeff Lance <email@jefflance.me>
--]]--
local M = {}
M.setup = function()
-- ============
-- key mappings examples using nvim or lvim api.
2024-01-07 00:37:50 +00:00
--
-- vim.api.nvim_set_keymap("n", "sw", "<Plug>Ysurroundiw", { noremap = true, silent = true })
-- vim.api.nvim_set_keymap("n", "Sw", "<Plug>YSurroundiw", { noremap = true, silent = true })
-- lvim.keys.normal_mode["<C-t>"] = ":FloatermToggle terminal<CR>"
2024-01-07 00:37:50 +00:00
--
lvim.leader = ";"
lvim.keys.insert_mode[";;"] = "<Esc>"
lvim.keys.normal_mode["<C-s>"] = "<CMD>w!<CR>"
lvim.keys.normal_mode["<C-z>"] = "<CMD>undo<CR>"
lvim.keys.normal_mode["<C-r>"] = "<CMD>redo<CR>"
lvim.keys.normal_mode["<C-[>"] = ":<<CR>"
lvim.keys.normal_mode["<C-]>"] = ":><CR>"
end
return M