Jeff LANCE
3fab56646f
Update home/.config/lvim/lua/user/keybindings.lua Update home/.config/lvim/lua/user/luasnip-helper-funcs.lua Update home/.config/lvim/lua/user/plugins.lua Update home/.config/lvim/lua/user/whichkey.lua
36 lines
951 B
Lua
36 lines
951 B
Lua
--[[--
|
|
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.
|
|
--
|
|
-- 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>"
|
|
--
|
|
|
|
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
|
|
|