RRethy/nvim-treesitter-endwise
Tentang
Menambahkan "end" dengan tepat di Ruby, Vimscript, Lua, dan lainnya. Alternatif untuk vim-endwise karya tpope yang memahami Tree-sitter.
Alat pengembanganPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Aslinvim-treesitter-endwise
wisely add "end" in Ruby, Lua, Vimscript, etc.
Quick Start
No configuration is required, just install the plugin and it'll work!
About
This is a simple plugin that helps to end certain structures automatically. In Ruby, this means adding end after if, do, def, etc. This even works for languages nested inside other, such as Markdown with a Lua code block!
Supported Languages: Ruby, Lua, Vimscript, Bash, Elixir, Fish, Julia
Additional Language Support
Please 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.
Credit
This 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.
Special thanks to
- @jasonrhansen who added support for injected languages and Vimscript.
- @simonmandlik who added support for Julia.
Jelajahi proyek terkait
Memuat…