Skip to content

Commit

Permalink
fix(nvim): :GoModTidy keymap to current buf only
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Apr 26, 2024
1 parent 7c65a48 commit c20784f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/neovim/config/after/ftplugin/go.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ vim.api.nvim_buf_create_user_command(bufnr, "GoModTidy", function()
command = "gopls.tidy",
arguments = arguments,
})
-- vim.cmd("silent! e") -- do we need this?
end, { desc = "go mod tidy" })

vim.keymap.set("n", "<leader>gmt", vim.cmd.GoModTidy, {
noremap = true,
silent = true,
buffer = bufnr,
desc = "Run go mod tidy",
})

0 comments on commit c20784f

Please sign in to comment.