new file: after/plugin/codex_unmap.lua

modified:   ftplugin/html.lua
      new file:   ftplugin/text.lua
      modified:   ftplugin/yaml.lua
      modified:   lua/config.lua
      modified:   lua/functions.lua
      modified:   lua/keybinds.lua
      modified:   lua/lsp.lua
      modified:   lua/plugins.lua
This commit is contained in:
2021-12-18 15:37:19 -06:00
parent 37c0127980
commit 68d9b480f6
9 changed files with 348 additions and 36 deletions
+21
View File
@@ -0,0 +1,21 @@
local function local_map(mode, lhs, rhs, opts)
local options = {noremap = true}
if opts then
options = vim.tbl_extend("force", options, opts)
end
vim.api.nvim_buf_set_keymap(0, mode, lhs, rhs, options)
end
local function silent_map(mode, lhs, rhs)
local_map(mode, lhs, rhs, {silent = true})
end
silent_map("n", "<Up>", "gk")
silent_map("n", "<Down>", "gj")
silent_map("n", "<Home>", "g<Home>")
silent_map("n", "<End>", "g<End>")
silent_map("i", "<Up>", "<C-o>gk")
silent_map("i", "<Down>", "<C-o>gj")
silent_map("i", "<Home>", "<C-o>g<Home>")
silent_map("i", "<End>", "<C-o>g<End>")