• Stars
    star
    328
  • Rank 128,352 (Top 3 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 3 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Wisely add "end" in Ruby, Vimscript, Lua, etc. Tree-sitter aware alternative to tpope's vim-endwise

nvim-treesitter-endwise

wisely add "end" in ruby, Lua, Vimscript, etc.

Untitled.mov

Quick Start

require('nvim-treesitter.configs').setup {
    endwise = {
        enable = true,
    },
}

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

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 #2 (comment) 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, Vimscript, and Julia.

More Repositories

1

vim-illuminate

illuminate.vim - (Neo)Vim plugin for automatically highlighting other uses of the word under the cursor using either LSP, Tree-sitter, or regex matching.
Lua
2,156
star
2

vim-hexokinase

hexokinase.vim - (Neo)Vim plugin for asynchronously displaying the colours in the file (#rrggbb, #rgb, rgb(a)? functions, hsl(a)? functions, web colours, custom patterns)
Vim Script
960
star
3

base16-nvim

Neovim plugin for building a sync base16 colorscheme. Includes support for Treesitter and LSP highlight groups.
Lua
500
star
4

nvim-treesitter-textsubjects

Location and syntax aware text objects which *do what you mean*
Scheme
495
star
5

tcount

Count your code by tokens and patterns in the syntax tree. A tokei/scc/cloc alternative.
Rust
65
star
6

nvim-align

Neovim plugin for aligning text
Lua
40
star
7

ToonUp

Android App that lets you Choose from Thousands of Cartoons/Movies/Animes to Watch for Free
Kotlin
19
star
8

ahocorasick

The fastest Golang implementation of the Aho-Corasick algorithm for string-searching.
Go
18
star
9

dotfiles

My dotfiles: neovim, git, zsh, kitty
Lua
16
star
10

hexokinase

Fast text scraper to find and convert colours (hex, rgb, rgb, hsl, web colours, custom patterns, etc.) into hex values
Go
15
star
11

NOTES-CS246

Object-Oriented Software Development - C++
15
star
12

tagrity

Automatically regenerate your tags on file changes https://rubygems.org/gems/tagrity
Ruby
10
star
13

vim-tranquille

tranquille.vim - Vim plugin for searching without moving the cursor
Vim Script
8
star
14

nvim-hotline

Minimal Lua wrappers for 'statusline' and 'tabline'
Lua
8
star
15

VimHelp

Android app for browsing vim/neovim docs offline
Kotlin
6
star
16

MethodHooker

Xposed module for method hooking Android apps
Java
3
star
17

nvim-animator

Neovim plugin that animates the change in a value for use in animations.
Lua
3
star
18

vim-indexor

indexor.vim - Vim plugin for indexing lists
Vim Script
2
star
19

fzy-rs

fzy scoring algorithm as a Rust crate
Rust
2
star
20

rejects

POC Regular expression implementation using Rust macros to compile the automaton at compile time.
Rust
2
star
21

nvim-sourcerer

Automatically source your init.lua when it gets modified anywhere.
Lua
2
star
22

WordSearch

Kotlin
2
star
23

RhymeTime

Android app for looking up rhymes - Advanced usage example of Dagger.android
Kotlin
2
star
24

cpid1

An init (PID 1) process purpose-built for containers
Rust
1
star
25

SmartyFloaty

Android app that displays overlay and automatically disables it when permissions pop up.
Java
1
star
26

vim-spotlight

Searching through and open Apps using fzf inside Vim.
Vim Script
1
star
27

book

JavaScript
1
star
28

Quasar

Android App that lets you choose any image on your phone to act as a semi-transparent overlay
Java
1
star
29

rwc

Rust implementation of wc with a slightly nicer UI
Rust
1
star
30

nvim-carom

WIP: carom.nvim - execute macros asynchronously
Vim Script
1
star
31

tc

Moved to https://github.com/rrethy/tcount
1
star
32

vim-impiared

impiared.vim - a pair to match plugins of square, round, and curly brackets
Vim Script
1
star
33

cs350-os161-utils

Some utilities to ease the pain of working with os161 in CS350 at UWaterloo
Ruby
1
star
34

kubectl-x

`kubectl` plugin with various useful extensions.
Go
1
star