From e69a093d9f8e760175870e057c679eeb2c87919b Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Sat, 13 May 2023 16:24:24 -0500 Subject: [PATCH] collected personal configs into a single directory --- .gitignore | 3 ++- init.lua | 5 +---- lua/{ => huck}/functions.lua | 0 lua/huck/init.lua | 4 ++++ lua/{ => huck}/map.lua | 4 +++- lua/{ => huck}/settings.lua | 0 lua/{ => huck}/theme.lua | 0 7 files changed, 10 insertions(+), 6 deletions(-) rename lua/{ => huck}/functions.lua (100%) create mode 100644 lua/huck/init.lua rename lua/{ => huck}/map.lua (96%) rename lua/{ => huck}/settings.lua (100%) rename lua/{ => huck}/theme.lua (100%) diff --git a/.gitignore b/.gitignore index 5086297..e642df5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ !.gitignore !*.lua !lua/ -!lua/plugins/ +!lua/plugins +!lua/huck diff --git a/init.lua b/init.lua index 847c8b5..ac11d89 100644 --- a/init.lua +++ b/init.lua @@ -35,7 +35,4 @@ require("lazy").setup("plugins", { }, }) -require('settings') -require('map') -require('functions') -require('theme') +require('huck') diff --git a/lua/functions.lua b/lua/huck/functions.lua similarity index 100% rename from lua/functions.lua rename to lua/huck/functions.lua diff --git a/lua/huck/init.lua b/lua/huck/init.lua new file mode 100644 index 0000000..5a93344 --- /dev/null +++ b/lua/huck/init.lua @@ -0,0 +1,4 @@ +require('huck.functions') +require('huck.map') +require('huck.settings') +require('huck.theme') diff --git a/lua/map.lua b/lua/huck/map.lua similarity index 96% rename from lua/map.lua rename to lua/huck/map.lua index d0de5de..dcdf426 100644 --- a/lua/map.lua +++ b/lua/huck/map.lua @@ -18,8 +18,10 @@ vim.keymap.set('n', '', 'zz') -- quick redo last macro vim.keymap.set('n', 'Q', '@@') --- replace word thats under cursor +-- useful ex (:) commands vim.keymap.set('n', 's', [[:%s/\<\>//gI]]) +vim.keymap.set('n', 'c', ':r!') +vim.keymap.set('n', 'Q', 'so') -- better line editing vim.keymap.set('v', 'J', ":m '>+1gv=gv") diff --git a/lua/settings.lua b/lua/huck/settings.lua similarity index 100% rename from lua/settings.lua rename to lua/huck/settings.lua diff --git a/lua/theme.lua b/lua/huck/theme.lua similarity index 100% rename from lua/theme.lua rename to lua/huck/theme.lua -- 2.45.2