2 files changed,
20 insertions(+),
1 deletions(-)
jump to
| A | ftplugin/go.lua |
| M | lua/plugin/whichkey.lua |
A
ftplugin/go.lua
@@ -0,0 +1,18 @@
+-- spacing +vim.opt_local.tabstop = 4 +vim.opt_local.shiftwidth = 4 +vim.opt_local.softtabstop = 4 + +-- which-key +require("which-key").register({ + C = { + name = "Coding", + a = { "<cmd>GoTagAdd<cr>", "Add tags to struct" }, + r = { "<cmd>GoTagRm<cr>", "Remove tags to struct" }, + f = { "<cmd>GoFillStruct<cr>", "Fill struct" }, + }, +}, { + prefix = "<leader>", + mode = "n", + { noremap = true, silent = true }, +})
M
lua/plugin/whichkey.lua
@@ -29,7 +29,7 @@ window = {
border = "none", position = "bottom", margin = { 1, 0, 1, 0 }, - padding = { 0, 1, 1, 0 }, + padding = { 2, 2, 2, 2 }, winblend = 0, }, layout = {@@ -64,6 +64,7 @@ t = { "<cmd>Telescope live_grep<cr>", "Live grep" },
r = { "<cmd>Telescope oldfiles<cr>", "Find oldfile" }, b = { "<cmd>Telescope git_branches<cr>", "Git branches" }, c = { "<cmd>Telescope git_commits<cr>", "Git commits" }, + s = { "<cmd>Telescope spell_suggest<cr>", "Spell suggest" }, k = { "<cmd>Telescope keymaps<cr>", "Find keymap" }, p = { "<cmd>Telescope projects<cr>", "Projects" }, },