adds go config and removes unnecessary packages
This commit is contained in:
parent
27aaefc519
commit
e492804a69
6 changed files with 23 additions and 22 deletions
|
|
@ -14,6 +14,10 @@ return {
|
|||
markdown = { "prettierd" },
|
||||
json = { "prettierd" },
|
||||
lua = { "stylua" },
|
||||
go = { "goimports" },
|
||||
gomod = { "goimports" },
|
||||
gowork = { "goimports" },
|
||||
gotmpl = { "goimports" },
|
||||
},
|
||||
format_on_save = {
|
||||
-- These options will be passed to conform.format()
|
||||
|
|
|
|||
15
modules/nvim/config/lua/plugins/gopher.lua
Normal file
15
modules/nvim/config/lua/plugins/gopher.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
"olexsmir/gopher.nvim",
|
||||
ft = "go",
|
||||
build = function()
|
||||
vim.cmd.GoInstallDeps()
|
||||
end,
|
||||
---@module "gopher"
|
||||
---@type gopher.Config
|
||||
opts = {},
|
||||
keys = {
|
||||
{ "<leader>cga", "<cmd>GoTagAdd<cr>", desc = "Add tags to struct", mode = "n" },
|
||||
{ "<leader>cgi", "<cmd>GoIfErr<cr>", desc = "Adds if err boilerplate", mode = "n" },
|
||||
{ "<leader>cgt", "<cmd>GoTestAdd<cr>", desc = "Add test under cursor", mode = "n" },
|
||||
},
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
return {
|
||||
"MagicDuck/grug-far.nvim",
|
||||
config = function()
|
||||
require("grug-far").setup({})
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>sr", "<cmd>GrugFar<cr>", desc = "Search and replace", mode = "n" },
|
||||
},
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
return {
|
||||
"echasnovski/mini.diff",
|
||||
config = function()
|
||||
local diff = require("mini.diff")
|
||||
diff.setup({
|
||||
source = diff.gen_source.none(),
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue