{"id":28713312,"url":"https://github.com/brianhuster/treesitter-endwise.nvim","last_synced_at":"2025-06-15T00:09:44.121Z","repository":{"id":273589043,"uuid":"920157348","full_name":"brianhuster/treesitter-endwise.nvim","owner":"brianhuster","description":"Wisely add \"end\" in Ruby, Vimscript, Lua, etc. Tree-sitter aware alternative to tpope's vim-endwise","archived":false,"fork":false,"pushed_at":"2025-06-06T09:33:55.000Z","size":79,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T10:35:53.233Z","etag":null,"topics":["neovim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"metiulekm/nvim-treesitter-endwise","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brianhuster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-01-21T16:59:00.000Z","updated_at":"2025-06-06T09:33:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"10713948-ed7f-4b5f-a61d-1b542553ed06","html_url":"https://github.com/brianhuster/treesitter-endwise.nvim","commit_stats":null,"previous_names":["brianhuster/nvim-treesitter-endwise"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brianhuster/treesitter-endwise.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianhuster%2Ftreesitter-endwise.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianhuster%2Ftreesitter-endwise.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianhuster%2Ftreesitter-endwise.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianhuster%2Ftreesitter-endwise.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianhuster","download_url":"https://codeload.github.com/brianhuster/treesitter-endwise.nvim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianhuster%2Ftreesitter-endwise.nvim/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259901392,"owners_count":22929227,"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-plugin"],"created_at":"2025-06-15T00:09:42.126Z","updated_at":"2025-06-15T00:09:44.040Z","avatar_url":"https://github.com/brianhuster.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003ca href=\"https://github.com/RRethy/nvim-treesitter-endwise\"\u003envim-treesitter-endwise\u003c/a\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003ewisely add \"end\" in Ruby, Lua, Vimscript, etc.\u003c/h4\u003e\n\nhttps://user-images.githubusercontent.com/21000943/150613732-442589e2-6b08-4b14-b0a3-47effef0eb28.mov\n\n# Introduction\n\nThis is a simple plugin that helps to end certain structures automatically. In Ruby, this means adding end after if, do, def, etc.\n\n\u003c!-- This even works for languages nested inside other, such as Markdown with a Lua code block! --\u003e\n\n**Supported Languages**: *Ruby*, *Lua*, *Vimscript*, *Bash*, *Elixir*, *Fish*, *Julia*\n\n# Quick Start\n\nYou can install this plugin using your favorite plugin manager or `packages` feature in Neovim.\n\n\u003e [!NOTE]\n\u003e This plugin does **not** support lazy loading.\n\nAfter installing the plugin, make sure that you install the Treesitter parsers for the languages. For example, if you use [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter):\n```vim\n:TSInstall ruby lua vim bash elixir fish julia\n```\nAlso make sure that you have enabled Treesitter highlighting for the filetypes you want to use this plugin with.\n\n```lua\nvim.api.nvim_create_autocmd('FileType', {\n    pattern = {'ruby', 'lua', 'vim', 'bash', 'elixir', 'fish', 'julia'},\n    callback = function()\n        vim.treesitter.start()\n    end\n})\n```\n\nIf you want to enable this plugin for some filetypes only, you can use the following code:\n```lua\nvim.g.treesitter_endwise_filetypes = {'ruby', 'lua', 'vim', 'bash', 'elixir', 'fish', 'julia'}\n```\n\nOr to disable it for some filetypes:\n```lua\nvim.g.treesitter_endwise_filetypes_disable = {'fish'}\n```\n\n# Additional Language Support\n\nPlease open an issue for new languages, right now I'm open PRs but I won't be implementing other languages myself (except for maybe shell script). See https://github.com/RRethy/nvim-treesitter-endwise/issues/2#issuecomment-1019574925 for more information on adding support for a new language.\n\n# Credit\n\nThis is just a rewrite of https://github.com/tpope/vim-endwise to leverage Treesitter so it can be more accurate and work without having to run Neovim's slow regex based highlighting along with nvim-treesitter highlighting.\n\nSpecial thanks to\n* [@jasonrhansen](https://www.github.com/jasonrhansen) who added support for injected languages and Vimscript.\n* [@simonmandlik](https://www.github.com/simonmandlik) who added support for Julia.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianhuster%2Ftreesitter-endwise.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianhuster%2Ftreesitter-endwise.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianhuster%2Ftreesitter-endwise.nvim/lists"}