From 34fd4bd6c932f01a3ec508dfe0f6f65bb74d3bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Thu, 12 Mar 2026 22:26:24 +0100 Subject: [PATCH] nvim: more Go and Odin keys --- nvim/.config/nvim/lua/plugins/fzf-lua.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nvim/.config/nvim/lua/plugins/fzf-lua.lua b/nvim/.config/nvim/lua/plugins/fzf-lua.lua index a667fe5..a6bed73 100644 --- a/nvim/.config/nvim/lua/plugins/fzf-lua.lua +++ b/nvim/.config/nvim/lua/plugins/fzf-lua.lua @@ -155,12 +155,18 @@ if ok then set("n", "GF", function() fzf.files({ cwd = go_mod(), cmd = "fd --type f -e go" }) end, { desc = "FzfLua Go mod files" }) + set("n", "Gl", function() + fzf.files({ cmd = "fd --type f -e go" }) + end, { desc = "FzfLua Go current dir files" }) set("n", "Gs", function() go_grep(go_root()) end, { desc = "FzfLua Go grep declarations" }) set("n", "GS", function() go_grep(go_mod()) end, { desc = "FzfLua Go grep mod declarations" }) + set("n", "Gd", function() + go_grep(nil) + end, { desc = "FzfLua Go current dir grep declarations" }) set("n", "Gm", function() go_grep(go_mod_pkg or go_mod()) end, { desc = "FzfLua Go grep mod declarations" }) @@ -193,9 +199,15 @@ if ok then set("n", "of", function() fzf.files({ cwd = "~/cloned/Odin", cmd = "fd --type f -e odin" }) end, { desc = "FzfLua Odin files" }) + set("n", "ol", function() + fzf.files({ cmd = "fd --type f -e odin" }) + end, { desc = "FzfLua Odin current dir files" }) set("n", "os", function() odin_grep("~/cloned/Odin") end, { desc = "FzfLua Odin grep declarations" }) + set("n", "od", function() + odin_grep(nil) + end, { desc = "FzfLua Odin grep declarations" }) set("n", "op", function() odin_grep(odin_pkg) end, { desc = "FzfLua Odin grep package declarations" })