Skip to content

Commit fdd4181

Browse files
authored
Merge pull request #181 from Isrothy/exclude-bigfile
Exclude bigfile
2 parents 65b1f12 + a9ab7bf commit fdd4181

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

README.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
![GitHub watchers](https://img.shields.io/github/watchers/Isrothy/neominimap.nvim)
88
![GitHub contributors](https://img.shields.io/github/contributors/Isrothy/neominimap.nvim)
99
<a href="https://dotfyle.com/plugins/Isrothy/neominimap.nvim">
10-
<img src="https://dotfyle.com/plugins/Isrothy/neominimap.nvim/shield" />
10+
<img src="https://dotfyle.com/plugins/Isrothy/neominimap.nvim/shield" />
1111
</a>
1212

1313
![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/Isrothy/neominimap.nvim)
@@ -79,7 +79,7 @@ Criticisms are welcome.
7979

8080
- 🖥️ LSP integration
8181
- 🌳 TreeSitter integration
82-
- Fold integration
82+
- ➖ Fold integration
8383
- 🔀 Git integration
8484
- 🔎 Search integration
8585
- 🏷️ Support for marks
@@ -185,6 +185,7 @@ vim.g.neominimap ={
185185
---@type string[]
186186
exclude_filetypes = {
187187
"help",
188+
"bigfile", -- For Snacks.nvim
188189
},
189190

190191
-- Minimap will not be created for buffers of these types
@@ -398,7 +399,7 @@ vim.g.neominimap ={
398399
<summary>Click to expand</summary>
399400

400401
| Command | Description | Arguments |
401-
|---------------------------------------|-----------------------------------------------------------------------------------------------------------------|----------------------------|
402+
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -------------------------- |
402403
| `Neominimap on` | Turn on minimaps globally. | None |
403404
| `Neominimap off` | Turn off minimaps globally. | None |
404405
| `Neominimap toggle` | Toggle minimaps globally. | None |
@@ -470,7 +471,7 @@ To refresh the minimap for windows 3 and 4:
470471
<summary>These are the corresponding commands in the Lua API.</summary>
471472

472473
| Function | Description | Arguments |
473-
|---------------------------------------------|--------------------------------------------------------------|----------------------------------------------------------------------|
474+
| ------------------------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------- |
474475
| `require('neominimap').on()` | Enable the minimap globally across all buffers and windows. | None |
475476
| `require('neominimap').off()` | Disable the minimap globally. | None |
476477
| `require('neominimap').toggle()` | Toggle the minimap on or off globally. | None |
@@ -501,6 +502,7 @@ See the [wiki page](https://github.com/Isrothy/neominimap.nvim/wiki/Custimized-H
501502

502503
This plugin provides statusline components that integrate with various
503504
statusline plugins like Lualine.
505+
504506
<details>
505507
<summary>
506508
Click to expand
@@ -593,8 +595,8 @@ and displays it.
593595
If multiple highlights occur the same number of times,
594596
all of them are displayed.
595597

596-
Note that the plugin considers which highlights are *applied*,
597-
rather than which highlights are *shown*.
598+
Note that the plugin considers which highlights are _applied_,
599+
rather than which highlights are _shown_.
598600
Specifically, when many highlights are applied to a codepoint,
599601
it is possible that only some of them are visible.
600602
However, all applied highlights are considered in the calculation.
@@ -614,7 +616,7 @@ Checkout the wiki page for more details. [wiki](https://github.com/Isrothy/neomi
614616
### Highlight Groups of Neominimap Windows
615617

616618
| Highlight Group | Description |
617-
|----------------------------|--------------------------------------------|
619+
| -------------------------- | ------------------------------------------ |
618620
| `NeominimapBackground` | Background color for the minimap. |
619621
| `NeominimapBorder` | Border highlight for the minimap window. |
620622
| `NeominimapCursorLine` | Highlight for the cursor line in minimaps. |
@@ -625,7 +627,7 @@ Checkout the wiki page for more details. [wiki](https://github.com/Isrothy/neomi
625627
### Highlight Groups of Diagnostic Annotations
626628

627629
| Highlight Group | Description |
628-
|-----------------------|-------------|
630+
| --------------------- | ----------- |
629631
| `NeominimapHintLine` | |
630632
| `NeominimapInfoLine` | |
631633
| `NeominimapWarnLine` | |
@@ -642,7 +644,7 @@ Checkout the wiki page for more details. [wiki](https://github.com/Isrothy/neomi
642644
### Highlight Groups of Git Annotations
643645

644646
| Highlight Group | Description |
645-
|---------------------------|-------------|
647+
| ------------------------- | ----------- |
646648
| `NeominimapGitAddLine` | |
647649
| `NeominimapGitChangeLine` | |
648650
| `NeominimapGitDeleteLine` | |
@@ -656,15 +658,15 @@ Checkout the wiki page for more details. [wiki](https://github.com/Isrothy/neomi
656658
### Highlight Groups of Search Annotations
657659

658660
| Highlight Group | Description |
659-
|------------------------|-------------|
661+
| ---------------------- | ----------- |
660662
| `NeominimapSearchLine` | |
661663
| `NeominimapSearchSign` | |
662664
| `NeominimapSearchIcon` | |
663665

664666
### Highlight Groups of Mark Annotations
665667

666668
| Highlight Group | Description |
667-
|----------------------|-------------|
669+
| -------------------- | ----------- |
668670
| `NeominimapMarkLine` | |
669671
| `NeominimapMarkSign` | |
670672
| `NeominimapMarkIcon` | |
@@ -677,7 +679,7 @@ Checkout the wiki page for more details. [wiki](https://github.com/Isrothy/neomi
677679
<summary>Click to expand</summary>
678680

679681
| Namespace | Description |
680-
|-------------------------|----------------------------------|
682+
| ----------------------- | -------------------------------- |
681683
| `neominimap_git` | Git signs and highlights. |
682684
| `neominimap_diagnostic` | Diagnostic signs and highlights. |
683685
| `neominimap_search` | Search signs and highlights. |
@@ -702,7 +704,7 @@ Checkout the wiki page for more details. [wiki](https://github.com/Isrothy/neomi
702704

703705
- Scrollbar.
704706
Use [satellite.nvim](https://github.com/lewis6991/satellite.nvim),
705-
[nvim-scrollview](https://github.com/dstein64/nvim-scrollview)
707+
[nvim-scrollview](https://github.com/dstein64/nvim-scrollview)
706708
or other plugins.
707709
- Display screen bounds like
708710
[codewindow.nvim](https://github.com/gorbit99/codewindow.nvim).
@@ -719,6 +721,7 @@ Checkout the wiki page for more details. [wiki](https://github.com/Isrothy/neomi
719721
## Similar projects
720722

721723
- [codewindow.nvim](https://github.com/gorbit99/codewindow.nvim)
724+
722725
- Codewindow.nvim renders the minimap whenever focus is switched to a
723726
different window or the buffer is switched. In contrast, this plugin caches
724727
the minimap, so it only renders when the text is changed. Therefore, this
@@ -733,6 +736,7 @@ Checkout the wiki page for more details. [wiki](https://github.com/Isrothy/neomi
733736
does.
734737

735738
- [mini.map](https://github.com/echasnovski/mini.map)
739+
736740
- Mini.map allows for encoded symbol customization, while this plugin does not.
737741
- Mini.map includes a scrollbar, which this plugin does not.
738742
- Mini.map does not have Treesitter integration, whereas this plugin does.

lua/neominimap/config/internal.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ local M = {
1616
---@type string[]
1717
exclude_filetypes = {
1818
"help",
19+
"bigfile", -- For Snacks.nvim
1920
},
2021

2122
-- Minimap will not be created for buffers of these types

0 commit comments

Comments
 (0)