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:
+2
-2
@@ -1,2 +1,2 @@
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.tabstop = 2
|
||||
vim.bo.shiftwidth = 2
|
||||
vim.bo.tabstop = 2
|
||||
|
||||
@@ -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>")
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.tabstop = 4
|
||||
vim.bo.shiftwidth = 4
|
||||
vim.bo.tabstop = 4
|
||||
|
||||
Reference in New Issue
Block a user