mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-05 20:56:33 +05:30
add go.nvim plugin
This commit is contained in:
@ -42,15 +42,6 @@ M.mason = {
|
||||
|
||||
-- nix
|
||||
"nil",
|
||||
|
||||
-- go
|
||||
"gopls",
|
||||
"goimports",
|
||||
"gofumpt",
|
||||
"gomodifytags",
|
||||
"impl",
|
||||
"iferr",
|
||||
"staticcheck",
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -93,5 +93,22 @@ local plugins = {
|
||||
"folke/neodev.nvim",
|
||||
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
|
||||
|
Reference in New Issue
Block a user