{"id":13895666,"url":"https://github.com/hrsh7th/nvim-gtd","last_synced_at":"2025-04-15T11:28:21.395Z","repository":{"id":63929091,"uuid":"571688579","full_name":"hrsh7th/nvim-gtd","owner":"hrsh7th","description":"LSP's Go to definition plugin for neovim.","archived":false,"fork":false,"pushed_at":"2025-03-25T03:37:08.000Z","size":88,"stargazers_count":39,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-25T04:27:05.549Z","etag":null,"topics":["neovim","neovim-plugins"],"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/hrsh7th.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":"2022-11-28T17:11:13.000Z","updated_at":"2025-03-25T03:37:12.000Z","dependencies_parsed_at":"2024-02-01T05:53:24.194Z","dependency_job_id":"56b5ea28-ef7b-47ec-9e8d-05928f69f9d3","html_url":"https://github.com/hrsh7th/nvim-gtd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrsh7th%2Fnvim-gtd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrsh7th%2Fnvim-gtd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrsh7th%2Fnvim-gtd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrsh7th%2Fnvim-gtd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrsh7th","download_url":"https://codeload.github.com/hrsh7th/nvim-gtd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249060479,"owners_count":21206338,"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":["neovim","neovim-plugins"],"created_at":"2024-08-06T18:02:22.528Z","updated_at":"2025-04-15T11:28:21.379Z","avatar_url":"https://github.com/hrsh7th.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# nvim-gtd\n\nLSP's Go To Definition plugin for neovim.\n\nThis plugin is highly experimental.\nThe breaking changes will be applied without notice.\n\n# Concept\n\n- Run `textDocument/definition` and `gf` in one mapping.\n- Open the path as much as possible\n\n# Usage\n\n```lua\n---@class gtd.kit.App.Config.Schema\n---@field public sources { name: string, option?: table }[] # Specify the source that will be used to search for the definition\n---@field public get_buffer_path fun(): string # Specify the function to get the current buffer path. It's useful for searching path from terminal buffer etc.\n---@field public on_event fun(event: gtd.Event)\n---@field public on_context fun(context: gtd.Context) # Modify context on user-land.\n---@field public on_cancel fun(params: gtd.Params)\n---@field public on_nothing fun(params: gtd.Params)\n---@field public on_location fun(params: gtd.Params, location: gtd.kit.LSP.LocationLink)\n---@field public on_locations fun(params: gtd.Params, locations: gtd.kit.LSP.LocationLink[])\n\n-- The `findup` and `lsp` source are enabled by default (at the moment).\nrequire('gtd').setup {\n  ... gtd.kit.App.Config.Schema ...\n}\n\nvim.keymap.set('n', 'gf\u003cCR\u003e', function()\n  require('gtd').exec({ command = 'edit' })\nend)\nvim.keymap.set('n', 'gfs', function()\n  require('gtd').exec({ command = 'split' })\nend)\nvim.keymap.set('n', 'gfv', function()\n  require('gtd').exec({ command = 'vsplit' })\nend)\n```\n\n# Sources\n\nThe following sources are built-in.\n\n#### lsp_definition\n\n(Default: enabled)\n\nFind definitions via LSP `textDocument/definition`.\n\n#### lsp_type_definition\n\n(Default: enabled)\n\nFind definitions via LSP `textDocument/typeDefinition`.\n\n#### lsp_implementation\n\n(Default: enabled)\n\nFind definitions via LSP `textDocument/implementation`.\n\n#### findup\n\n(Default: enabled)\n\nFind definitions via `vim.fn.findfile` with `;` flag.\n\n#### walk\n\n(Default: disabled)\n\nTraverse all filepaths under project.\n\n|option-name|type|description|\n|-----------|----|-----------|\n|root_markers|string[]|Specify root markers like `{ '.git', 'tsconfig.json' }`.|\n|ignore_patterns|string[]|Specify ignore patterns like `{ '/node_modules', '/.git' }`|\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrsh7th%2Fnvim-gtd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrsh7th%2Fnvim-gtd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrsh7th%2Fnvim-gtd/lists"}