]> git.huck.website - nvim.git/commitdiff
collected personal configs into a single directory
authorHuck Boles <huck@huck.website>
Sat, 13 May 2023 21:24:24 +0000 (16:24 -0500)
committerHuck Boles <huck@huck.website>
Sat, 13 May 2023 21:24:24 +0000 (16:24 -0500)
.gitignore
init.lua
lua/huck/functions.lua [moved from lua/functions.lua with 100% similarity]
lua/huck/init.lua [new file with mode: 0644]
lua/huck/map.lua [moved from lua/map.lua with 96% similarity]
lua/huck/settings.lua [moved from lua/settings.lua with 100% similarity]
lua/huck/theme.lua [moved from lua/theme.lua with 100% similarity]

index 5086297ad30cd97e0be35fe451c96b59c460426b..e642df5ff0537ebf5492419e1c13efb1b1132a4b 100644 (file)
@@ -2,4 +2,5 @@
 !.gitignore
 !*.lua
 !lua/
-!lua/plugins/
+!lua/plugins
+!lua/huck
index 847c8b5f261ac237dd963e900dff187a9c53ec02..ac11d89b8d3d60f0f35e6d4a736b8b37cbdf5acf 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -35,7 +35,4 @@ require("lazy").setup("plugins", {
     },
 })
 
-require('settings')
-require('map')
-require('functions')
-require('theme')
+require('huck')
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 (file)
index 0000000..5a93344
--- /dev/null
@@ -0,0 +1,4 @@
+require('huck.functions')
+require('huck.map')
+require('huck.settings')
+require('huck.theme')
similarity index 96%
rename from lua/map.lua
rename to lua/huck/map.lua
index d0de5def97777b4a60455efac4b22122f720fa68..dcdf426b56d3ea029120b8b47c7aec484fa20230 100644 (file)
@@ -18,8 +18,10 @@ vim.keymap.set('n', '<C-i>', '<C-i>zz')
 -- quick redo last macro
 vim.keymap.set('n', 'Q', '@@')
 
--- replace word thats under cursor
+-- useful ex (:) commands
 vim.keymap.set('n', '<LEADER>s', [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
+vim.keymap.set('n', '<LEADER>c', ':r!')
+vim.keymap.set('n', '<LEADER>Q', '<CMD>so<CR>')
 
 -- better line editing
 vim.keymap.set('v', 'J', ":m '>+1<CR>gv=gv")
similarity index 100%
rename from lua/settings.lua
rename to lua/huck/settings.lua
similarity index 100%
rename from lua/theme.lua
rename to lua/huck/theme.lua