diff --git a/.config/nvim/lua/keybinds.lua b/.config/nvim/lua/keybinds.lua index 85c1b6c..1991f58 100644 --- a/.config/nvim/lua/keybinds.lua +++ b/.config/nvim/lua/keybinds.lua @@ -1 +1,13 @@ -- filetype-specific keybinds can be found in the ftplugin folder, requires 'filetype plugin on' +function map(mode, lhs, rhs, opts) + local options = { noremap = true } + if opts then + options = vim.tbl_extend("force", options, opts) + end + vim.api.nvim_set_keymap(mode, lhs, rhs, options) +end + +map("n", "", "ik$") +-- map("n", "", "d$Op^") +map("n", "", "i") +