• Stars
    star
    193
  • Rank 196,425 (Top 4 %)
  • Language
    Lua
  • License
    MIT License
  • Created about 3 years ago
  • Updated 10 months ago

Reviews

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

Repository Details

An extremely lightweight plugin (~ 120loc) that hightlights ranges you have entered in commandline.

range-highlight.nvim

An extremely lightweight plugin (~ 120loc) that hightlights ranges you have entered in commandline.

Demo for using range-highlight

Features

  • Single line range highlight (:10)

  • Absolute range highlight (:20,15)

  • Semicolon separated range highlight (:20;15)

  • Backward range highlight (:20,15)

  • Shorthand range highlight (:,15)

  • Relative range highlight (:+5,-2)

  • Multiple relative range highlight (:10+5--,5+3-2)

  • Mark range highlight (:'a,20)

  • Dot range highlight (:.,-2, :5,.)

  • Last line and whole file highlight (:4,$, :%)

  • Pattern range highlight (:/hello/d, ?world?d)

Installation

range-highlight.nvim requires a minimum version of NeoVim 0.5.0.

You can install it using any standard Vim/NeoVim package manager. For example:

paq.nvim

paq{'winston0410/cmd-parser.nvim'}
paq{'winston0410/range-highlight.nvim'}
require'range-highlight'.setup{}

Configuration

This is the default configuration. It is likely that you don't need to change anything.

require("range-highlight").setup {
    highlight = "Visual",
	highlight_with_out_range = {
        d = true,
        delete = true,
        m = true,
        move = true,
        y = true,
        yank = true,
        c = true,
        change = true,
        j = true,
        join = true,
        ["<"] = true,
        [">"] = true,
        s = true,
        subsititue = true,
        sno = true,
        snomagic = true,
        sm = true,
        smagic = true,
        ret = true,
        retab = true,
        t = true,
        co = true,
        copy = true,
        ce = true,
        center = true,
        ri = true,
        right = true,
        le = true,
        left = true,
        sor = true,
        sort = true
	}
}

Range highlight not working for your command?

If the range highlight doesn't work for your command, you can contribute it into the above list

Acknowledgement

Thank you folks from gitters for helping me out with this plugin.

More Repositories

1

commented.nvim

Neovim commenting plugin in Lua. Support operator, motions and more than 60 languages! 🔥
Lua
112
star
2

mark-radar.nvim

Lua
34
star
3

glory-svelte-preprocess

A svelte preprocess for safely minimizing CSS class footprint for unbeliveable performance gain. 🚀 🚀 🚀
JavaScript
23
star
4

glory

The world fastest framework agonistic CSS-in-JS library. Available in any frontend framework you use, like React, Vue and Svelte.
JavaScript
22
star
5

mkNodePackage

A helper flake for building Node.js package easily with Nix.
Nix
10
star
6

smart-cursor.nvim

Auto-indenting your cursor with treesitter
Lua
10
star
7

freedom-editor

Freedom Editor is a lightweight, fully extensible, zero-dependencies, framework agonistic block editor.
JavaScript
10
star
8

postcss-rfs-autopilot

A PostCSS plugin that will auto markup your CSS with rfs() for RFS
JavaScript
9
star
9

nixos-dotfiles

My dotfiles for NixOS, acting as a client for my multiple flakes structure.
Nix
8
star
10

cmd-parser.nvim

A command-line parser for neovim for plugin authors.
Lua
8
star
11

better-O.nvim

A plugin that insert newline better than the default O.
Lua
6
star
12

postcss-sparrow-auto-content-visibility

A PostCSS plugin that helps you add the new experimental CSS declaration, content-visibility: auto to any selectors with display: none for boosting render performance.
JavaScript
6
star
13

xdg.nix

A flake to make your system XDG compliance.
Nix
5
star
14

tree-sitter-hjson

Treesitter grammar for hjson.
C
4
star
15

bevy-nixos

Rust
3
star
16

ramda-dom-utilities

An utility library that enables currying and piping for DOM manipulation functions with Ramda
JavaScript
3
star
17

neovim-dotfiles

Lua
3
star
18

old-dotfiles

Lua
2
star
19

snowpack-plugin-prefetch-data

A plugin to help you save API response as JSON during `snowpack build`.
JavaScript
2
star
20

sparrow

A PostCSS plugin that helps you remove, replace, append or prepend CSS declarations without the need of writing another PostCSS plugin
JavaScript
2
star
21

bewater

A PostCSS plugin that helps you automatically apply `clamp()` to values to achieve a fluid design efficently.
JavaScript
2
star
22

svelte-use-resize-observer

A simple svelte action for using `ResizeObserver`.
TypeScript
1
star
23

ogs-client

OGS Client for arranging games easily.
Svelte
1
star
24

ory-flake

Nix
1
star
25

limelight.nvim

Lua
1
star
26

jyut.info

1
star
27

fastify-mongo-example

TypeScript
1
star
28

postcss-sparrow-props-filter

A PostCSS Sparrow plugin that helps you search CSS declarations by properties.
JavaScript
1
star
29

universal-dotfiles

My stateful universal dotfiles, sharing configuration across platforms through Nix Flake.
Lua
1
star
30

fix-hash

JavaScript
1
star
31

buf-num-nav.nvim

Navigate buffers in neovim like in tmux with numbers.
Lua
1
star
32

better-fastify-405

A better plugin for handling 405 in Fastify.
TypeScript
1
star
33

svelte-glory

SCSS
1
star
34

atom-setting

Less
1
star
35

suitcase.nvim

Lua
1
star
36

portfolio-2021

My portfolio site! Built with SvelteKit, PostCSS.
Svelte
1
star