From 2de69770a21cce8233311557b5eba002cf15d56b Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 27 Dec 2024 01:15:02 -0500 Subject: [PATCH] AutoYADM commit: 2024-12-27 01:15:02 --- .config/nvim/lazy-lock.json | 3 ++- .config/nvim/lua/config/keymaps.lua | 9 +++++++-- .config/nvim/lua/plugins/thesaurus.lua | 4 ++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .config/nvim/lua/plugins/thesaurus.lua diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index e18030dc..de034ff7 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -52,7 +52,7 @@ "noice.nvim": { "branch": "main", "commit": "eaed6cc9c06aa2013b5255349e4f26a6b17ab70f" }, "nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" }, "nvim-cmp": { "branch": "main", "commit": "3403e2e9391ed0a28c3afddd8612701b647c8e26" }, - "nvim-colorizer.lua": { "branch": "master", "commit": "8c6164f3beb90b3b44ab4dd6657979553d106aea" }, + "nvim-colorizer.lua": { "branch": "master", "commit": "3437b6bdf8301b84dafa6088d06ec2751e09ea9b" }, "nvim-dap": { "branch": "master", "commit": "665d3569a86395fe0dab85efbdb26d7d2ee57e49" }, "nvim-dap-go": { "branch": "main", "commit": "6aa88167ea1224bcef578e8c7160fe8afbb44848" }, "nvim-dap-python": { "branch": "master", "commit": "34282820bb713b9a5fdb120ae8dd85c2b3f49b51" }, @@ -84,6 +84,7 @@ "snacks.nvim": { "branch": "main", "commit": "98df370703b3c47a297988f3e55ce99628639590" }, "speedtyper.nvim": { "branch": "v2", "commit": "f27fa7870dd35f1884efaef1c9f1d2e7dcedcacf" }, "tabout.nvim": { "branch": "master", "commit": "9a3499480a8e53dcaa665e2836f287e3b7764009" }, + "telescope-words.nvim": { "branch": "main", "commit": "0b12c4b75ed4d6d13a35cb7f40cc370b39eb1043" }, "telescope.nvim": { "branch": "master", "commit": "2eca9ba22002184ac05eddbe47a7fe2d5a384dfc" }, "text-case.nvim": { "branch": "main", "commit": "e898cfd46fa6cde0e83abb624a16e67d2ffc6457" }, "todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" }, diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index 00eadb69..71f9dad7 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -25,11 +25,16 @@ map({ "n", "x" }, "\\", function() LazyVim.format({ force = true }) end, { desc = "Format" }) -map({ "n", "i" }, "", function() +map({ "n" }, "", function() + -- the `a` is necessary to return the cursor to the same + -- position it was before + vim.cmd("normal! zz") +end, { remap = false, noremap = true, desc = "Center Screen" }) +map({ "i" }, "", function() -- the `a` is necessary to return the cursor to the same -- position it was before vim.api.nvim_input("zza") -end, { remap = false, noremap = true, desc = "Center Screen" }) +end, { remap = false, noremap = true, desc = "Center Screen (Insert mode)" }) map("n", "", "stop", { desc = "Suspend" }) diff --git a/.config/nvim/lua/plugins/thesaurus.lua b/.config/nvim/lua/plugins/thesaurus.lua new file mode 100644 index 00000000..8d280b5f --- /dev/null +++ b/.config/nvim/lua/plugins/thesaurus.lua @@ -0,0 +1,4 @@ +return { + "nvim-telescope/telescope.nvim", + dependencies = { "archie-judd/telescope-words.nvim" }, +}