Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New features #13

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# visimatch.nvim

A tiny plugin to highlight text matching the current selection in visual mode 💫
![250307_15h51m26s_screenshot](https://github.com/user-attachments/assets/4e1091a6-982d-4d92-a3d1-c19700f8ef8f)

![visimatch](https://github.com/user-attachments/assets/c9547434-950c-4205-945d-097481baf85e)

Expand Down Expand Up @@ -31,9 +32,9 @@ opts = {
-- The highlight group to apply to matched text
hl_group = "Search",
-- The minimum number of selected characters required to trigger highlighting
chars_lower_limit = 6,
chars_lower_limit = 5,
-- The maximum number of selected lines to trigger highlighting for
lines_upper_limit = 30,
lines_upper_limit = 45,
-- By default, visimatch will highlight text even if it doesn't have exactly
-- the same spacing as the selected region. You can set this to `true` if
-- you're not a fan of this behaviour :)
Expand All @@ -44,12 +45,12 @@ opts = {
-- * `"all"`: highlight matches in all visible buffers
-- * A function. This will be passed a buffer number and should return
-- `true`/`false` to indicate whether the buffer should be highlighted.
buffers = "filetype"
buffers = "filetype" ,
-- Case-(in)nsitivity for matches. Valid options:
-- * `true`: matches will never be case-sensitive
-- * `false`/`{}`: matches will always be case-sensitive
-- * a table of filetypes to use use case-insensitive matching for.
case_insensitive = { "markdown", "text", "help" },
case_insensitive = { "markdown", "text", "help" , "oil" },
}
```

Expand Down
Loading