huge cleanup

This commit is contained in:
2025-02-22 17:46:00 -06:00
parent 4742d52e78
commit 74eb4c94b8
19 changed files with 136 additions and 275 deletions
+2 -1
View File
@@ -1 +1,2 @@
require("helpers").set_tab(4)
vim.bo.shiftwidth = 4
vim.bo.tabstop = 4
+2 -1
View File
@@ -1 +1,2 @@
require("helpers").set_tab(4)
vim.bo.shiftwidth = 4
vim.bo.tabstop = 4
+2 -1
View File
@@ -1 +1,2 @@
require("helpers").set_tab(4)
vim.bo.shiftwidth = 4
vim.bo.tabstop = 4
+2 -1
View File
@@ -1 +1,2 @@
require("helpers").set_tab(2)
vim.bo.shiftwidth = 2
vim.bo.tabstop = 2
-1
View File
@@ -1 +0,0 @@
require("helpers").set_tab(4)
+14 -16
View File
@@ -1,20 +1,18 @@
local map = require("helpers").map
local function silent_map(mode, lhs, rhs)
map(mode, lhs, rhs, { silent = true })
local function map(mode, lhs, rhs)
vim.keymap.set(mode, lhs, rhs, { silent = true, noremap = true })
end
silent_map("n", "<Up>", "gk")
silent_map("n", "<Down>", "gj")
silent_map("n", "<Home>", "g<Home>")
silent_map("n", "<End>", "g<End>")
map("n", "<Up>", "gk")
map("n", "<Down>", "gj")
map("n", "<Home>", "g<Home>")
map("n", "<End>", "g<End>")
silent_map("v", "<Up>", "gk")
silent_map("v", "<Down>", "gj")
silent_map("v", "<Home>", "g<Home>")
silent_map("v", "<End>", "g<End>")
map("v", "<Up>", "gk")
map("v", "<Down>", "gj")
map("v", "<Home>", "g<Home>")
map("v", "<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>")
map("i", "<Up>", "<C-o>gk")
map("i", "<Down>", "<C-o>gj")
map("i", "<Home>", "<C-o>g<Home>")
map("i", "<End>", "<C-o>g<End>")
+2 -1
View File
@@ -1 +1,2 @@
require("helpers").set_tab(4)
vim.bo.shiftwidth = 4
vim.bo.tabstop = 4
-1
View File
@@ -1 +0,0 @@
require("helpers").set_tab(4)