{"id":18368830,"url":"https://github.com/catgoose/templ-goto-definition","last_synced_at":"2025-08-22T07:14:25.702Z","repository":{"id":256023716,"uuid":"854144717","full_name":"catgoose/templ-goto-definition","owner":"catgoose","description":"Fixes golang templ goto definition to open .templ file instead of generated .go file","archived":false,"fork":false,"pushed_at":"2024-09-09T00:13:38.000Z","size":5,"stargazers_count":23,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T04:02:48.976Z","etag":null,"topics":["golang","neovim-plugin","nvim-plugin","templ"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catgoose.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-08T13:51:37.000Z","updated_at":"2025-02-16T15:59:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"e53a9cf9-eb79-4e95-9e1c-8cdb9f703128","html_url":"https://github.com/catgoose/templ-goto-definition","commit_stats":null,"previous_names":["catgoose/templ-goto-definition"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catgoose%2Ftempl-goto-definition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catgoose%2Ftempl-goto-definition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catgoose%2Ftempl-goto-definition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catgoose%2Ftempl-goto-definition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catgoose","download_url":"https://codeload.github.com/catgoose/templ-goto-definition/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247522429,"owners_count":20952546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","neovim-plugin","nvim-plugin","templ"],"created_at":"2024-11-05T23:27:36.468Z","updated_at":"2025-04-06T17:31:52.733Z","avatar_url":"https://github.com/catgoose.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# templ-goto-definition\n\nFixes Neovim gopls LSP goto definition for templ templates\n\nWhen using `vim.lsp.buf.definition` in a Go file for a templ template, gopls\nonly knows about the generated Go file. This plugin overrides `vim.lsp.buf.definition`\nfor the Go filetype and tries to open the correct temple file at the function\ndefinition\n\n`templ` treesitter grammar is required for treesitter query to locate function name\nin .templ file. If treesitter is unavailable, text search strategy is used\n\n## Setup\n\nLazy.nvim\n\n```lua\nreturn {\n  \"catgoose/templ-goto-definition\",\n  ft = { \"go\" },\n  config = true,\n  dependenciies = \"nvim-treesitter/nvim-treesitter\", -- optional\n}\n```\n\nSee this templ issue: \u003chttps://github.com/a-h/templ/issues/387\u003e\nVSCode version not made by me, but was mentioned in the above issue: \u003chttps://github.com/a-h/templ/issues/387#issuecomment-2322872570\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatgoose%2Ftempl-goto-definition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatgoose%2Ftempl-goto-definition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatgoose%2Ftempl-goto-definition/lists"}