{"id":13895703,"url":"https://github.com/yioneko/nvim-type-fmt","last_synced_at":"2026-01-23T18:22:25.391Z","repository":{"id":220263149,"uuid":"570410756","full_name":"yioneko/nvim-type-fmt","owner":"yioneko","description":"LSP handler of textDocument/onTypeFormatting for nvim.","archived":false,"fork":false,"pushed_at":"2024-06-24T01:20:50.000Z","size":8,"stargazers_count":15,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-25T01:31:55.524Z","etag":null,"topics":["neovim"],"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/yioneko.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-25T05:51:09.000Z","updated_at":"2024-11-15T15:29:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"9dd15a26-e45c-4750-8cc5-ca890bcd7ec0","html_url":"https://github.com/yioneko/nvim-type-fmt","commit_stats":null,"previous_names":["yioneko/nvim-type-fmt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yioneko/nvim-type-fmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yioneko%2Fnvim-type-fmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yioneko%2Fnvim-type-fmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yioneko%2Fnvim-type-fmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yioneko%2Fnvim-type-fmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yioneko","download_url":"https://codeload.github.com/yioneko/nvim-type-fmt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yioneko%2Fnvim-type-fmt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28697428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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"],"created_at":"2024-08-06T18:02:24.462Z","updated_at":"2026-01-23T18:22:25.354Z","avatar_url":"https://github.com/yioneko.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# nvim-type-fmt\n\nLSP handler of `textDocument/onTypeFormatting` for nvim.\n\n## Usage\n\nJust install it by any plugin manager, and the plugin will automatically setup the handler for it. The plugin is lazy loaded by default, usually you do not need to add any other lazy loading logic by plugin manger.\n\nTo disable auto setup of the plugin, put this before the loading of plugins:\n\n```vim\ng:type_fmt_loaded = v:true\n\n\" or in lua\nlua\u003c\u003c EOF\nvim.g.type_fmt_loaded = true\nEOF\n```\n\n## Config\n\nThe configuration is optional.\n\n```lua\nrequire(\"type-fmt\").setup({\n    -- In case if you only want to enable this for limited buffers\n    -- We already filter it by checking capabilities of attached lsp client\n    buf_filter = function(bufnr)\n        return true\n    end,\n    -- If multiple clients are capable of onTypeFormatting, we use this to determine which will win\n    -- This is a rare situation but we still provide it for the correctness of lsp client handling\n    prefer_client = function(client_a, client_b)\n        return client_a or client_b\n    end,\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyioneko%2Fnvim-type-fmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyioneko%2Fnvim-type-fmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyioneko%2Fnvim-type-fmt/lists"}