From: Huck Boles Date: Sat, 13 May 2023 21:24:24 +0000 (-0500) Subject: collected personal configs into a single directory X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=e69a093d9f8e760175870e057c679eeb2c87919b;p=nvim.git collected personal configs into a single directory --- 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