mirror of
https://github.com/tuxdotrs/tnvim.git
synced 2025-07-06 21:36:34 +05:30
add go.nvim plugin
This commit is contained in:
@ -42,15 +42,6 @@ M.mason = {
|
|||||||
|
|
||||||
-- nix
|
-- nix
|
||||||
"nil",
|
"nil",
|
||||||
|
|
||||||
-- go
|
|
||||||
"gopls",
|
|
||||||
"goimports",
|
|
||||||
"gofumpt",
|
|
||||||
"gomodifytags",
|
|
||||||
"impl",
|
|
||||||
"iferr",
|
|
||||||
"staticcheck",
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,5 +93,22 @@ local plugins = {
|
|||||||
"folke/neodev.nvim",
|
"folke/neodev.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"ray-x/go.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"ray-x/guihua.lua",
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
"mfussenegger/nvim-dap",
|
||||||
|
"rcarriga/nvim-dap-ui",
|
||||||
|
"theHamsta/nvim-dap-virtual-text",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("go").setup()
|
||||||
|
end,
|
||||||
|
event = { "CmdlineEnter" },
|
||||||
|
ft = { "go", "gomod" },
|
||||||
|
build = ':lua require("go.install").update_all_sync()',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
return plugins
|
return plugins
|
||||||
|
Reference in New Issue
Block a user