diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index e5a5f50..5e370a0 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -17,6 +17,7 @@ "gitsigns.nvim": { "branch": "main", "commit": "4c40357994f386e72be92a46f41fc1664c84c87d" }, "global-note.nvim": { "branch": "main", "commit": "1e0d4bba425d971ed3ce40d182c574a25507115c" }, "go.nvim": { "branch": "master", "commit": "6ad080424f4b96a584cf591721e8e13c102cce4e" }, + "godoc.nvim": { "branch": "main", "commit": "0163dd1f4695ef6bed8ad72336b96e08f31018a0" }, "guihua.lua": { "branch": "master", "commit": "d783191eaa75215beae0c80319fcce5e6b3beeda" }, "indent-blankline.nvim": { "branch": "master", "commit": "e10626f7fcd51ccd56d7ffc00883ba7e0aa28f78" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, diff --git a/nvim/.config/nvim/lua/plugins/godoc.lua b/nvim/.config/nvim/lua/plugins/godoc.lua new file mode 100644 index 0000000..da8656c --- /dev/null +++ b/nvim/.config/nvim/lua/plugins/godoc.lua @@ -0,0 +1,24 @@ +return { + { + 'fredrikaverpil/godoc.nvim', + version = '*', + dependencies = { + { 'nvim-telescope/telescope.nvim' }, + { + 'nvim-treesitter/nvim-treesitter', + opts = { + ensure_installed = { 'go' }, + }, + }, + }, + event = 'VeryLazy', + cmd = 'GoDoc', + keys = { + { 'gd', 'GoDoc', desc = '[G]o[D]oc' }, + }, + build = 'go install github.com/lotusirous/gostdsym/stdsym@latest', + opts = { + picker = { type = 'telescope' }, + }, + }, +}