diff --git a/.config/fish/conf.d/bob.fish b/.config/fish/conf.d/bob.fish new file mode 100644 index 0000000..2a0ac05 --- /dev/null +++ b/.config/fish/conf.d/bob.fish @@ -0,0 +1 @@ +source "/home/kacaii/.local/share/bob/env/env.fish" diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index e80e527..0aff352 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -3,6 +3,13 @@ local map = vim.keymap.set -- exit insert mode by double tapping `j` map("i", "jj", "") +-- run previous macro +vim.keymap.set("n", "Q", function() + local reg = vim.fn.reg_recorded() + + return reg == "" and "" or ("@" .. reg) +end, { expr = true, desc = "Run macro" }) + -- quick inspect map("n", "ui", "Inspect", { desc = "Inspect" }) @@ -69,12 +76,6 @@ map( { expr = true, silent = true } ) --- move to window using the hjkl keys -map("n", "", "h", { desc = "Go to Left Window", remap = true }) -map("n", "", "j", { desc = "Go to Lower Window", remap = true }) -map("n", "", "k", { desc = "Go to Upper Window", remap = true }) -map("n", "", "l", { desc = "Go to Right Window", remap = true }) - -- https://github.com/mhinz/vim-galore#saner-behavior-of-n-and-n map("n", "n", "'Nn'[v:searchforward].'zv'", { expr = true }) map("x", "n", "'Nn'[v:searchforward]", { expr = true }) diff --git a/.config/nvim/lua/config/user_commands.lua b/.config/nvim/lua/config/user_commands.lua index 6259bcd..3a2cf6c 100644 --- a/.config/nvim/lua/config/user_commands.lua +++ b/.config/nvim/lua/config/user_commands.lua @@ -3,9 +3,3 @@ vim.api.nvim_create_user_command( "lua vim.pack.update(nil, { target = 'lockfile' })", { desc = "Ensure plugins are synced with the lockfile" } ) - -vim.api.nvim_create_user_command( - "PackUpdate", - "lua vim.pack.update()", - { desc = "Update plugins to their latest version" } -) diff --git a/.config/nvim/plugin/ui2.lua b/.config/nvim/plugin/ui2.lua index a3697e4..d4ba8a6 100644 --- a/.config/nvim/plugin/ui2.lua +++ b/.config/nvim/plugin/ui2.lua @@ -1,10 +1,4 @@ require("vim._core.ui2").enable({ enable = true, - msg = { - target = "cmd", - pager = { height = 0.5 }, - dialog = { height = 0.5 }, - cmd = { height = 0.5 }, - msg = { height = 0.5, timeout = 4500 }, - }, + msg = { target = "cmd" }, })