Skip to content

ccbiozhaw/block-highlight.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

block-highlight.nvim

A small plugin for neovim to highlight within or around a block. Based on tree-sitter and lua.

It provides a function that creates a visual selection inside or around objects.

image

With the cursor on a string, the string will be highlighted.

image

Otherwise the next surrounding brackets will be selected.

brackets: ["(" ")" "[" "]" "{" "}"]

image

Installation

Tree-sitter is required

Packer:

use 'ccbiozhaw/block-highlight.nvim'

Setup:

for your keymaps.lua

vim.keymap.set("n", "<leader>vib", "<cmd>lua require('block-highlight').select('inside')<CR>", {silent = true})
vim.keymap.set("n", "<leader>vab", "<cmd>lua require('block-highlight').select('around')<CR>", {silent = true})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages