retrovim 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.conda/retrovim.yaml +259 -0
- package/.conda/terax.icns +0 -0
- package/.conda/terax.ico +0 -0
- package/.conda/terax.png +0 -0
- package/.github/workflows/release.yml +95 -0
- package/.gitmodules +3 -0
- package/.npm/kanata_touchcursor.js +28 -0
- package/.npm/nvim.js +26 -0
- package/.npm/yazi.js +26 -0
- package/.npm/zsh.js +17 -0
- package/.pip/kanata_touchcursor/__init__.py +28 -0
- package/.pip/nvim/__init__.py +31 -0
- package/.pip/yazi/__init__.py +31 -0
- package/.pip/zsh/__init__.py +22 -0
- package/CHANGELOG.md +26 -0
- package/LICENSE +674 -0
- package/README.md +336 -0
- package/kanata/touchcursor.kbd +164 -0
- package/nvim/init.lua +813 -0
- package/nvim/plugins/mini.nvim/.github/DISCUSSION_TEMPLATE/q-a.yml +72 -0
- package/nvim/plugins/mini.nvim/.github/ISSUE_TEMPLATE/bug-report.yml +136 -0
- package/nvim/plugins/mini.nvim/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/nvim/plugins/mini.nvim/.github/ISSUE_TEMPLATE/feature-request.yml +75 -0
- package/nvim/plugins/mini.nvim/.github/PULL_REQUEST_TEMPLATE.md +2 -0
- package/nvim/plugins/mini.nvim/.github/workflows/quality-control.yml +150 -0
- package/nvim/plugins/mini.nvim/.pre-commit-config.yaml +20 -0
- package/nvim/plugins/mini.nvim/.stylua.toml +7 -0
- package/nvim/plugins/mini.nvim/.styluaignore +1 -0
- package/nvim/plugins/mini.nvim/CHANGELOG.md +1894 -0
- package/nvim/plugins/mini.nvim/CODE_OF_CONDUCT.md +132 -0
- package/nvim/plugins/mini.nvim/CONTRIBUTING.md +331 -0
- package/nvim/plugins/mini.nvim/LICENSE +21 -0
- package/nvim/plugins/mini.nvim/MAINTAINING.md +330 -0
- package/nvim/plugins/mini.nvim/Makefile +51 -0
- package/nvim/plugins/mini.nvim/README.md +261 -0
- package/nvim/plugins/mini.nvim/TESTING.md +1011 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/README.md +35 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/benchmark.sh +56 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_dashboard-alpha.lua +21 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_dashboard-original.lua +17 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_dashboard-starter.lua +18 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_empty.lua +4 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_starter-default.lua +7 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_startify-alpha.lua +10 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_startify-original.lua +7 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_startify-starter.lua +20 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/install.sh +10 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/make_summary.py +68 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/startup-summary.md +10 -0
- package/nvim/plugins/mini.nvim/colors/miniautumn.lua +55 -0
- package/nvim/plugins/mini.nvim/colors/minicyan.lua +95 -0
- package/nvim/plugins/mini.nvim/colors/minischeme.lua +95 -0
- package/nvim/plugins/mini.nvim/colors/minispring.lua +53 -0
- package/nvim/plugins/mini.nvim/colors/minisummer.lua +49 -0
- package/nvim/plugins/mini.nvim/colors/miniwinter.lua +51 -0
- package/nvim/plugins/mini.nvim/colors/randomhue.lua +16 -0
- package/nvim/plugins/mini.nvim/doc/mini-ai.txt +889 -0
- package/nvim/plugins/mini.nvim/doc/mini-align.txt +923 -0
- package/nvim/plugins/mini.nvim/doc/mini-animate.txt +937 -0
- package/nvim/plugins/mini.nvim/doc/mini-base16.txt +285 -0
- package/nvim/plugins/mini.nvim/doc/mini-basics.txt +359 -0
- package/nvim/plugins/mini.nvim/doc/mini-bracketed.txt +622 -0
- package/nvim/plugins/mini.nvim/doc/mini-bufremove.txt +123 -0
- package/nvim/plugins/mini.nvim/doc/mini-clue.txt +760 -0
- package/nvim/plugins/mini.nvim/doc/mini-cmdline.txt +392 -0
- package/nvim/plugins/mini.nvim/doc/mini-colors.txt +880 -0
- package/nvim/plugins/mini.nvim/doc/mini-comment.txt +230 -0
- package/nvim/plugins/mini.nvim/doc/mini-completion.txt +477 -0
- package/nvim/plugins/mini.nvim/doc/mini-cursorword.txt +105 -0
- package/nvim/plugins/mini.nvim/doc/mini-deps.txt +590 -0
- package/nvim/plugins/mini.nvim/doc/mini-diff.txt +661 -0
- package/nvim/plugins/mini.nvim/doc/mini-doc.txt +434 -0
- package/nvim/plugins/mini.nvim/doc/mini-extra.txt +856 -0
- package/nvim/plugins/mini.nvim/doc/mini-files.txt +1018 -0
- package/nvim/plugins/mini.nvim/doc/mini-fuzzy.txt +160 -0
- package/nvim/plugins/mini.nvim/doc/mini-git.txt +425 -0
- package/nvim/plugins/mini.nvim/doc/mini-hipatterns.txt +489 -0
- package/nvim/plugins/mini.nvim/doc/mini-hues.txt +420 -0
- package/nvim/plugins/mini.nvim/doc/mini-icons.txt +508 -0
- package/nvim/plugins/mini.nvim/doc/mini-indentscope.txt +485 -0
- package/nvim/plugins/mini.nvim/doc/mini-input.txt +932 -0
- package/nvim/plugins/mini.nvim/doc/mini-jump.txt +202 -0
- package/nvim/plugins/mini.nvim/doc/mini-jump2d.txt +525 -0
- package/nvim/plugins/mini.nvim/doc/mini-keymap.txt +449 -0
- package/nvim/plugins/mini.nvim/doc/mini-map.txt +717 -0
- package/nvim/plugins/mini.nvim/doc/mini-misc.txt +431 -0
- package/nvim/plugins/mini.nvim/doc/mini-move.txt +181 -0
- package/nvim/plugins/mini.nvim/doc/mini-notify.txt +434 -0
- package/nvim/plugins/mini.nvim/doc/mini-nvim.txt +431 -0
- package/nvim/plugins/mini.nvim/doc/mini-operators.txt +472 -0
- package/nvim/plugins/mini.nvim/doc/mini-pairs.txt +346 -0
- package/nvim/plugins/mini.nvim/doc/mini-pick.txt +1535 -0
- package/nvim/plugins/mini.nvim/doc/mini-sessions.txt +239 -0
- package/nvim/plugins/mini.nvim/doc/mini-snippets.txt +1291 -0
- package/nvim/plugins/mini.nvim/doc/mini-splitjoin.txt +536 -0
- package/nvim/plugins/mini.nvim/doc/mini-starter.txt +618 -0
- package/nvim/plugins/mini.nvim/doc/mini-statusline.txt +361 -0
- package/nvim/plugins/mini.nvim/doc/mini-surround.txt +863 -0
- package/nvim/plugins/mini.nvim/doc/mini-tabline.txt +151 -0
- package/nvim/plugins/mini.nvim/doc/mini-test.txt +966 -0
- package/nvim/plugins/mini.nvim/doc/mini-trailspace.txt +91 -0
- package/nvim/plugins/mini.nvim/doc/mini-visits.txt +937 -0
- package/nvim/plugins/mini.nvim/logo.png +0 -0
- package/nvim/plugins/mini.nvim/lua/mini/ai.lua +2244 -0
- package/nvim/plugins/mini.nvim/lua/mini/align.lua +2076 -0
- package/nvim/plugins/mini.nvim/lua/mini/animate.lua +2127 -0
- package/nvim/plugins/mini.nvim/lua/mini/base16.lua +1752 -0
- package/nvim/plugins/mini.nvim/lua/mini/basics.lua +772 -0
- package/nvim/plugins/mini.nvim/lua/mini/bracketed.lua +2013 -0
- package/nvim/plugins/mini.nvim/lua/mini/bufremove.lua +283 -0
- package/nvim/plugins/mini.nvim/lua/mini/clue.lua +2096 -0
- package/nvim/plugins/mini.nvim/lua/mini/cmdline.lua +1182 -0
- package/nvim/plugins/mini.nvim/lua/mini/colors.lua +2483 -0
- package/nvim/plugins/mini.nvim/lua/mini/comment.lua +586 -0
- package/nvim/plugins/mini.nvim/lua/mini/completion.lua +2094 -0
- package/nvim/plugins/mini.nvim/lua/mini/cursorword.lua +311 -0
- package/nvim/plugins/mini.nvim/lua/mini/deps.lua +1660 -0
- package/nvim/plugins/mini.nvim/lua/mini/diff.lua +1938 -0
- package/nvim/plugins/mini.nvim/lua/mini/doc.lua +1371 -0
- package/nvim/plugins/mini.nvim/lua/mini/extra.lua +2290 -0
- package/nvim/plugins/mini.nvim/lua/mini/files.lua +3145 -0
- package/nvim/plugins/mini.nvim/lua/mini/fuzzy.lua +356 -0
- package/nvim/plugins/mini.nvim/lua/mini/git.lua +1737 -0
- package/nvim/plugins/mini.nvim/lua/mini/hipatterns.lua +1042 -0
- package/nvim/plugins/mini.nvim/lua/mini/hues.lua +2088 -0
- package/nvim/plugins/mini.nvim/lua/mini/icons.lua +2254 -0
- package/nvim/plugins/mini.nvim/lua/mini/indentscope.lua +1158 -0
- package/nvim/plugins/mini.nvim/lua/mini/init.lua +427 -0
- package/nvim/plugins/mini.nvim/lua/mini/input.lua +2183 -0
- package/nvim/plugins/mini.nvim/lua/mini/jump.lua +609 -0
- package/nvim/plugins/mini.nvim/lua/mini/jump2d.lua +1244 -0
- package/nvim/plugins/mini.nvim/lua/mini/keymap.lua +880 -0
- package/nvim/plugins/mini.nvim/lua/mini/map.lua +1709 -0
- package/nvim/plugins/mini.nvim/lua/mini/misc.lua +969 -0
- package/nvim/plugins/mini.nvim/lua/mini/move.lua +509 -0
- package/nvim/plugins/mini.nvim/lua/mini/notify.lua +938 -0
- package/nvim/plugins/mini.nvim/lua/mini/operators.lua +1349 -0
- package/nvim/plugins/mini.nvim/lua/mini/pairs.lua +657 -0
- package/nvim/plugins/mini.nvim/lua/mini/pick.lua +3876 -0
- package/nvim/plugins/mini.nvim/lua/mini/sessions.lua +689 -0
- package/nvim/plugins/mini.nvim/lua/mini/snippets.lua +2828 -0
- package/nvim/plugins/mini.nvim/lua/mini/splitjoin.lua +1132 -0
- package/nvim/plugins/mini.nvim/lua/mini/starter.lua +1599 -0
- package/nvim/plugins/mini.nvim/lua/mini/statusline.lua +686 -0
- package/nvim/plugins/mini.nvim/lua/mini/surround.lua +2388 -0
- package/nvim/plugins/mini.nvim/lua/mini/tabline.lua +564 -0
- package/nvim/plugins/mini.nvim/lua/mini/test.lua +2516 -0
- package/nvim/plugins/mini.nvim/lua/mini/trailspace.lua +215 -0
- package/nvim/plugins/mini.nvim/lua/mini/visits.lua +1577 -0
- package/nvim/plugins/mini.nvim/readmes/mini-ai.md +190 -0
- package/nvim/plugins/mini.nvim/readmes/mini-align.md +203 -0
- package/nvim/plugins/mini.nvim/readmes/mini-animate.md +214 -0
- package/nvim/plugins/mini.nvim/readmes/mini-base16.md +198 -0
- package/nvim/plugins/mini.nvim/readmes/mini-basics.md +184 -0
- package/nvim/plugins/mini.nvim/readmes/mini-bracketed.md +193 -0
- package/nvim/plugins/mini.nvim/readmes/mini-bufremove.md +139 -0
- package/nvim/plugins/mini.nvim/readmes/mini-clue.md +260 -0
- package/nvim/plugins/mini.nvim/readmes/mini-cmdline.md +183 -0
- package/nvim/plugins/mini.nvim/readmes/mini-colors.md +169 -0
- package/nvim/plugins/mini.nvim/readmes/mini-comment.md +183 -0
- package/nvim/plugins/mini.nvim/readmes/mini-completion.md +217 -0
- package/nvim/plugins/mini.nvim/readmes/mini-cursorword.md +137 -0
- package/nvim/plugins/mini.nvim/readmes/mini-deps.md +271 -0
- package/nvim/plugins/mini.nvim/readmes/mini-diff.md +289 -0
- package/nvim/plugins/mini.nvim/readmes/mini-doc.md +198 -0
- package/nvim/plugins/mini.nvim/readmes/mini-extra.md +158 -0
- package/nvim/plugins/mini.nvim/readmes/mini-files.md +247 -0
- package/nvim/plugins/mini.nvim/readmes/mini-fuzzy.md +134 -0
- package/nvim/plugins/mini.nvim/readmes/mini-git.md +168 -0
- package/nvim/plugins/mini.nvim/readmes/mini-hipatterns.md +176 -0
- package/nvim/plugins/mini.nvim/readmes/mini-hues.md +285 -0
- package/nvim/plugins/mini.nvim/readmes/mini-icons.md +183 -0
- package/nvim/plugins/mini.nvim/readmes/mini-indentscope.md +191 -0
- package/nvim/plugins/mini.nvim/readmes/mini-input.md +163 -0
- package/nvim/plugins/mini.nvim/readmes/mini-jump.md +161 -0
- package/nvim/plugins/mini.nvim/readmes/mini-jump2d.md +197 -0
- package/nvim/plugins/mini.nvim/readmes/mini-keymap.md +205 -0
- package/nvim/plugins/mini.nvim/readmes/mini-map.md +191 -0
- package/nvim/plugins/mini.nvim/readmes/mini-misc.md +145 -0
- package/nvim/plugins/mini.nvim/readmes/mini-move.md +163 -0
- package/nvim/plugins/mini.nvim/readmes/mini-notify.md +175 -0
- package/nvim/plugins/mini.nvim/readmes/mini-operators.md +193 -0
- package/nvim/plugins/mini.nvim/readmes/mini-pairs.md +158 -0
- package/nvim/plugins/mini.nvim/readmes/mini-pick.md +340 -0
- package/nvim/plugins/mini.nvim/readmes/mini-sessions.md +164 -0
- package/nvim/plugins/mini.nvim/readmes/mini-snippets.md +373 -0
- package/nvim/plugins/mini.nvim/readmes/mini-splitjoin.md +194 -0
- package/nvim/plugins/mini.nvim/readmes/mini-starter.md +176 -0
- package/nvim/plugins/mini.nvim/readmes/mini-statusline.md +155 -0
- package/nvim/plugins/mini.nvim/readmes/mini-surround.md +190 -0
- package/nvim/plugins/mini.nvim/readmes/mini-tabline.md +156 -0
- package/nvim/plugins/mini.nvim/readmes/mini-test.md +175 -0
- package/nvim/plugins/mini.nvim/readmes/mini-trailspace.md +137 -0
- package/nvim/plugins/mini.nvim/readmes/mini-visits.md +243 -0
- package/nvim/plugins/mini.nvim/scripts/dual_log.sh +13 -0
- package/nvim/plugins/mini.nvim/scripts/dual_push.sh +15 -0
- package/nvim/plugins/mini.nvim/scripts/dual_release.sh +102 -0
- package/nvim/plugins/mini.nvim/scripts/dual_sync.sh +115 -0
- package/nvim/plugins/mini.nvim/scripts/init-deps-example.lua +59 -0
- package/nvim/plugins/mini.nvim/scripts/lint-filename-length.sh +16 -0
- package/nvim/plugins/mini.nvim/scripts/lintcommit-ci.sh +18 -0
- package/nvim/plugins/mini.nvim/scripts/lintcommit.lua +393 -0
- package/nvim/plugins/mini.nvim/scripts/minidoc.lua +57 -0
- package/nvim/plugins/mini.nvim/scripts/minimal_init.lua +28 -0
- package/nvim/plugins/mini.nvim/scripts/minitest.lua +4 -0
- package/package.json +16 -0
- package/pyproject.toml +43 -0
- package/yazi/init.lua +12 -0
- package/yazi/keymap.toml +114 -0
- package/yazi/lesskey +5 -0
- package/yazi/plugins/bookmarks.yazi/main.lua +86 -0
- package/yazi/plugins/cd-git-root.yazi/main.lua +31 -0
- package/yazi/plugins/smart-enter.yazi/main.lua +11 -0
- package/yazi/theme.toml +26 -0
- package/yazi/yazi.toml +15 -0
- package/zsh/.zshrc +145 -0
- package/zsh/starship.toml +20 -0
- package/zsh/zsh-patina.toml +2 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<p align="center"> <img src="https://github.com/nvim-mini/assets/blob/main/logo-2/logo-hipatterns_readme.png?raw=true" alt="mini.hipatterns" style="max-width:100%;border:solid 2px"/> </p>
|
|
2
|
+
|
|
3
|
+
### Highlight patterns in text
|
|
4
|
+
|
|
5
|
+
See more details in [Features](#features) and [Documentation](../doc/mini-hipatterns.txt).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
> [!NOTE]
|
|
10
|
+
> This was previously hosted at a personal `echasnovski` GitHub account. It was transferred to a dedicated organization to improve long term project stability. See more details [here](https://github.com/nvim-mini/mini.nvim/discussions/1970).
|
|
11
|
+
|
|
12
|
+
⦿ This is a part of [mini.nvim](https://nvim-mini.org/mini.nvim) library. Please use [this link](https://nvim-mini.org/mini.nvim/readmes/mini-hipatterns) if you want to mention this module.
|
|
13
|
+
|
|
14
|
+
⦿ All contributions (issues, pull requests, discussions, etc.) are done inside of 'mini.nvim'.
|
|
15
|
+
|
|
16
|
+
⦿ See [whole library documentation](https://nvim-mini.org/mini.nvim/doc/mini-nvim) to learn about general design principles, disable/configuration recipes, and more.
|
|
17
|
+
|
|
18
|
+
⦿ See [MiniMax](https://nvim-mini.org/MiniMax) for a full config example that uses this module.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
If you want to help this project grow but don't know where to start, check out [contributing guides of 'mini.nvim'](https://nvim-mini.org/mini.nvim/CONTRIBUTING) or leave a Github star for 'mini.nvim' project and/or any its standalone Git repositories.
|
|
23
|
+
|
|
24
|
+
## Demo
|
|
25
|
+
|
|
26
|
+
<!-- Demo source: https://github.com/nvim-mini/assets/blob/main/demo/demo-hipatterns.mp4 -->
|
|
27
|
+
https://github.com/nvim-mini/mini.nvim/assets/24854248/130374e2-4e6c-43cf-af33-43d816b4fa32
|
|
28
|
+
|
|
29
|
+
## Features
|
|
30
|
+
|
|
31
|
+
- Highlight text with configurable patterns and highlight groups (can be string or callable).
|
|
32
|
+
|
|
33
|
+
- Highlighting is updated asynchronously with configurable debounce delay.
|
|
34
|
+
|
|
35
|
+
- Function to get matches in a buffer.
|
|
36
|
+
|
|
37
|
+
See `:h MiniHipatterns-examples` for examples of common use cases.
|
|
38
|
+
|
|
39
|
+
Notes:
|
|
40
|
+
|
|
41
|
+
- It does not define any highlighters by default. Add to `config.highlighters` to have a visible effect.
|
|
42
|
+
|
|
43
|
+
## Example usage
|
|
44
|
+
|
|
45
|
+
```lua
|
|
46
|
+
local hipatterns = require('mini.hipatterns')
|
|
47
|
+
hipatterns.setup({
|
|
48
|
+
highlighters = {
|
|
49
|
+
-- Highlight standalone 'FIXME', 'HACK', 'TODO', 'NOTE'
|
|
50
|
+
fixme = { pattern = '%f[%w]()FIXME()%f[%W]', group = 'MiniHipatternsFixme' },
|
|
51
|
+
hack = { pattern = '%f[%w]()HACK()%f[%W]', group = 'MiniHipatternsHack' },
|
|
52
|
+
todo = { pattern = '%f[%w]()TODO()%f[%W]', group = 'MiniHipatternsTodo' },
|
|
53
|
+
note = { pattern = '%f[%w]()NOTE()%f[%W]', group = 'MiniHipatternsNote' },
|
|
54
|
+
|
|
55
|
+
-- Highlight hex color strings (`#rrggbb`) using that color
|
|
56
|
+
hex_color = hipatterns.gen_highlighter.hex_color(),
|
|
57
|
+
},
|
|
58
|
+
})
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Installation
|
|
62
|
+
|
|
63
|
+
This plugin can be installed as part of 'mini.nvim' library (**recommended**) or as a standalone Git repository.
|
|
64
|
+
|
|
65
|
+
There are two branches to install from:
|
|
66
|
+
|
|
67
|
+
- `main` (default, **recommended**) will have latest development version of plugin. All changes since last stable release should be perceived as being in beta testing phase (meaning they already passed alpha-testing and are moderately settled).
|
|
68
|
+
- `stable` will be updated only upon releases with code tested during public beta-testing phase in `main` branch.
|
|
69
|
+
|
|
70
|
+
Here are code snippets for some common installation methods (use only one):
|
|
71
|
+
|
|
72
|
+
<details>
|
|
73
|
+
<summary><b>(Recommended)</b> With <a href="https://neovim.io/doc/user/helptag.html?tag=vim.pack">vim.pack</a> (on Neovim 0.12 and newer)</summary>
|
|
74
|
+
|
|
75
|
+
**Full library**
|
|
76
|
+
|
|
77
|
+
Follow ['mini.nvim' installation](https://nvim-mini.org/mini.nvim#installation).
|
|
78
|
+
|
|
79
|
+
**Standalone plugin**
|
|
80
|
+
|
|
81
|
+
Main branch:
|
|
82
|
+
|
|
83
|
+
```lua
|
|
84
|
+
vim.pack.add({ 'https://github.com/nvim-mini/mini.hipatterns' })
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Stable branch:
|
|
88
|
+
|
|
89
|
+
```lua
|
|
90
|
+
vim.pack.add({
|
|
91
|
+
{ src = 'https://github.com/nvim-mini/mini.hipatterns', version = 'stable' },
|
|
92
|
+
})
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
</details>
|
|
96
|
+
|
|
97
|
+
<details>
|
|
98
|
+
<summary>With <a href="https://nvim-mini.org/mini.nvim/readmes/mini-deps">mini.deps</a> (before Neovim 0.12)</summary>
|
|
99
|
+
|
|
100
|
+
**Full library**
|
|
101
|
+
|
|
102
|
+
Follow [recommended 'mini.deps' installation](https://nvim-mini.org/mini.nvim/readmes/mini-deps#installation).
|
|
103
|
+
|
|
104
|
+
**Standalone plugin**:
|
|
105
|
+
|
|
106
|
+
Main branch:
|
|
107
|
+
|
|
108
|
+
```lua
|
|
109
|
+
add('nvim-mini/mini.hipatterns')
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Stable branch:
|
|
113
|
+
|
|
114
|
+
```lua
|
|
115
|
+
add({ source = 'nvim-mini/mini.hipatterns', checkout = 'stable' })
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
</details>
|
|
119
|
+
|
|
120
|
+
<details>
|
|
121
|
+
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
|
|
122
|
+
|
|
123
|
+
**Full library**
|
|
124
|
+
|
|
125
|
+
Follow ['mini.nvim' installation](https://nvim-mini.org/mini.nvim#installation).
|
|
126
|
+
|
|
127
|
+
**Standalone plugin**
|
|
128
|
+
|
|
129
|
+
Main branch:
|
|
130
|
+
|
|
131
|
+
```lua
|
|
132
|
+
{ 'nvim-mini/mini.hipatterns', version = false },
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Stable branch:
|
|
136
|
+
|
|
137
|
+
```lua
|
|
138
|
+
{ 'nvim-mini/mini.hipatterns', version = '*' },
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
</details>
|
|
142
|
+
|
|
143
|
+
**Important**: don't forget to call `require('mini.hipatterns').setup()` with non-empty `highlighters` to auto-enable highlighting in all normal buffers.
|
|
144
|
+
|
|
145
|
+
**Note**: if you are on Windows, there might be problems with too long file paths (like `error: unable to create file <some file name>: Filename too long`). Try doing one of the following:
|
|
146
|
+
|
|
147
|
+
- Enable corresponding git global config value: `git config --system core.longpaths true`. Then try to reinstall.
|
|
148
|
+
- Install plugin in other place with shorter path.
|
|
149
|
+
|
|
150
|
+
## Default config
|
|
151
|
+
|
|
152
|
+
```lua
|
|
153
|
+
-- No need to copy this inside `setup()`. Will be used automatically.
|
|
154
|
+
{
|
|
155
|
+
-- Table with highlighters (see |MiniHipatterns.config| for more details).
|
|
156
|
+
-- Nothing is defined by default. Add manually for visible effect.
|
|
157
|
+
highlighters = {},
|
|
158
|
+
|
|
159
|
+
-- Delays (in ms) defining asynchronous highlighting process
|
|
160
|
+
delay = {
|
|
161
|
+
-- How much to wait for update after every text change
|
|
162
|
+
text_change = 200,
|
|
163
|
+
|
|
164
|
+
-- How much to wait for update after window scroll
|
|
165
|
+
scroll = 50,
|
|
166
|
+
},
|
|
167
|
+
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Similar plugins
|
|
172
|
+
|
|
173
|
+
- [folke/todo-comments.nvim](https://github.com/folke/todo-comments.nvim)
|
|
174
|
+
- [folke/paint.nvim](https://github.com/folke/paint.nvim)
|
|
175
|
+
- [NvChad/nvim-colorizer.lua](https://github.com/NvChad/nvim-colorizer.lua)
|
|
176
|
+
- [uga-rosa/ccc.nvim](https://github.com/uga-rosa/ccc.nvim)
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
<p align="center"> <img src="https://github.com/nvim-mini/assets/blob/main/logo-2/logo-hues_readme.png?raw=true" alt="mini.hues" style="max-width:100%;border:solid 2px"/> </p>
|
|
2
|
+
|
|
3
|
+
### Generate configurable color scheme
|
|
4
|
+
|
|
5
|
+
See more details in [Features](#features) and [Documentation](../doc/mini-hues.txt).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
> [!NOTE]
|
|
10
|
+
> This was previously hosted at a personal `echasnovski` GitHub account. It was transferred to a dedicated organization to improve long term project stability. See more details [here](https://github.com/nvim-mini/mini.nvim/discussions/1970).
|
|
11
|
+
|
|
12
|
+
⦿ This is a part of [mini.nvim](https://nvim-mini.org/mini.nvim) library. Please use [this link](https://nvim-mini.org/mini.nvim/readmes/mini-hues) if you want to mention this module.
|
|
13
|
+
|
|
14
|
+
⦿ All contributions (issues, pull requests, discussions, etc.) are done inside of 'mini.nvim'.
|
|
15
|
+
|
|
16
|
+
⦿ See [whole library documentation](https://nvim-mini.org/mini.nvim/doc/mini-nvim) to learn about general design principles, disable/configuration recipes, and more.
|
|
17
|
+
|
|
18
|
+
⦿ See [MiniMax](https://nvim-mini.org/MiniMax) for a full config example that uses this module.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
If you want to help this project grow but don't know where to start, check out [contributing guides of 'mini.nvim'](https://nvim-mini.org/mini.nvim/CONTRIBUTING) or leave a Github star for 'mini.nvim' project and/or any its standalone Git repositories.
|
|
23
|
+
|
|
24
|
+
## Demo
|
|
25
|
+
|
|
26
|
+
<!-- Demo source: https://github.com/nvim-mini/assets/blob/main/demo/demo-hues.mp4 -->
|
|
27
|
+
https://user-images.githubusercontent.com/24854248/236634787-ab0c33df-f697-4d96-a754-d77eccee7513.mp4
|
|
28
|
+
|
|
29
|
+
### Bundled color schemes
|
|
30
|
+
|
|
31
|
+
#### Four seasons
|
|
32
|
+
|
|
33
|
+
- `miniwinter`: "icy winter" palette with azure background
|
|
34
|
+
|
|
35
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-miniwinter-dark.png?raw=true"> <img alt="miniwinter dark" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-miniwinter-dark.png?raw=true" style="width: 45%"/> </a>
|
|
36
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-miniwinter-light.png?raw=true"> <img alt="miniwinter light" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-miniwinter-light.png?raw=true" style="width: 45%"/> </a>
|
|
37
|
+
|
|
38
|
+
- `minispring`: "blooming spring" palette with green background
|
|
39
|
+
|
|
40
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-minispring-dark.png?raw=true"> <img alt="minispring dark" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-minispring-dark.png?raw=true" style="width: 45%"/> </a>
|
|
41
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-minispring-light.png?raw=true"> <img alt="minispring light" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-minispring-light.png?raw=true" style="width: 45%"/> </a>
|
|
42
|
+
|
|
43
|
+
- `minisummer`: "hot summer" palette with brown/yellow background
|
|
44
|
+
|
|
45
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-minisummer-dark.png?raw=true"> <img alt="minisummer dark" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-minisummer-dark.png?raw=true" style="width: 45%"/> </a>
|
|
46
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-minisummer-light.png?raw=true"> <img alt="minisummer light" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-minisummer-light.png?raw=true" style="width: 45%"/> </a>
|
|
47
|
+
|
|
48
|
+
- `miniautumn`: "cooling autumn" palette with purple background
|
|
49
|
+
|
|
50
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-miniautumn-dark.png?raw=true"> <img alt="miniautumn dark" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-miniautumn-dark.png?raw=true" style="width: 45%"/> </a>
|
|
51
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-miniautumn-light.png?raw=true"> <img alt="miniautumn light" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-miniautumn-light.png?raw=true" style="width: 45%"/> </a>
|
|
52
|
+
|
|
53
|
+
#### `randomhue`
|
|
54
|
+
|
|
55
|
+
`randomhue` uses **randomly generated** background and foreground of same hue (color will change on every `:colorscheme randomhue` call):
|
|
56
|
+
|
|
57
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_dark-purple.png?raw=true"> <img alt="Dark purple" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_dark-purple.png?raw=true" style="width: 45%"/> </a>
|
|
58
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_light-purple.png?raw=true"> <img alt="Light purple" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_light-purple.png?raw=true" style="width: 45%"/> </a>
|
|
59
|
+
|
|
60
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_dark-azure.png?raw=true"> <img alt="Dark azure" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_dark-azure.png?raw=true" style="width: 45%"/> </a>
|
|
61
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_light-azure.png?raw=true"> <img alt="Light azure" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_light-azure.png?raw=true" style="width: 45%"/> </a>
|
|
62
|
+
|
|
63
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_dark-green.png?raw=true"> <img alt="Dark green" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_dark-green.png?raw=true" style="width: 45%"/> </a>
|
|
64
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_light-green.png?raw=true"> <img alt="Light green" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_light-green.png?raw=true" style="width: 45%"/> </a>
|
|
65
|
+
|
|
66
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_dark-orange.png?raw=true"> <img alt="Dark orange" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_dark-orange.png?raw=true" style="width: 45%"/> </a>
|
|
67
|
+
<a href="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_light-orange.png?raw=true"> <img alt="Light orange" src="https://github.com/nvim-mini/assets/blob/main/demo/demo-randomhue_light-orange.png?raw=true" style="width: 45%"/> </a>
|
|
68
|
+
|
|
69
|
+
## Example configurations
|
|
70
|
+
|
|
71
|
+
```lua
|
|
72
|
+
-- Choose background and foreground
|
|
73
|
+
require('mini.hues').setup({ background = '#351721', foreground = '#cdc4c6' }) -- red
|
|
74
|
+
require('mini.hues').setup({ background = '#361a0d', foreground = '#cdc5c1' }) -- orange
|
|
75
|
+
require('mini.hues').setup({ background = '#2c2101', foreground = '#c9c6c0' }) -- yellow
|
|
76
|
+
require('mini.hues').setup({ background = '#17280e', foreground = '#c4c8c2' }) -- green
|
|
77
|
+
require('mini.hues').setup({ background = '#002923', foreground = '#c0c9c7' }) -- cyan
|
|
78
|
+
require('mini.hues').setup({ background = '#002734', foreground = '#c0c8cc' }) -- azure
|
|
79
|
+
require('mini.hues').setup({ background = '#19213a', foreground = '#c4c6cd' }) -- blue
|
|
80
|
+
require('mini.hues').setup({ background = '#2b1a33', foreground = '#c9c5cb' }) -- purple
|
|
81
|
+
|
|
82
|
+
-- Different number of non-base hues
|
|
83
|
+
require('mini.hues').setup({ background = '#002734', foreground = '#c0c8cc', n_hues = 6 })
|
|
84
|
+
require('mini.hues').setup({ background = '#002734', foreground = '#c0c8cc', n_hues = 4 })
|
|
85
|
+
require('mini.hues').setup({ background = '#002734', foreground = '#c0c8cc', n_hues = 2 })
|
|
86
|
+
require('mini.hues').setup({ background = '#002734', foreground = '#c0c8cc', n_hues = 0 })
|
|
87
|
+
|
|
88
|
+
-- Different text saturation
|
|
89
|
+
require('mini.hues').setup({ background = '#002734', foreground = '#c0c8cc', saturation = 'low' })
|
|
90
|
+
require('mini.hues').setup({ background = '#002734', foreground = '#c0c8cc', saturation = 'lowmedium' })
|
|
91
|
+
require('mini.hues').setup({ background = '#002734', foreground = '#c0c8cc', saturation = 'medium' })
|
|
92
|
+
require('mini.hues').setup({ background = '#002734', foreground = '#c0c8cc', saturation = 'mediumhigh' })
|
|
93
|
+
require('mini.hues').setup({ background = '#002734', foreground = '#c0c8cc', saturation = 'high' })
|
|
94
|
+
|
|
95
|
+
-- Choose accent color
|
|
96
|
+
require('mini.hues').setup({ background = '#002734', foreground = '#c0c8cc', accent = 'yellow' })
|
|
97
|
+
require('mini.hues').setup({ background = '#002734', foreground = '#c0c8cc', accent = 'blue' })
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Features
|
|
101
|
+
|
|
102
|
+
- Required to set two base colors: background and foreground. Their shades and other non-base colors are computed to be as much perceptually different as reasonably possible.
|
|
103
|
+
|
|
104
|
+
- Configurable:
|
|
105
|
+
- Number of hues used for non-base colors (from 0 to 8).
|
|
106
|
+
- Saturation level ('low', 'lowmedium', 'medium', 'mediumhigh', 'high').
|
|
107
|
+
- Accent color used for some selected UI elements.
|
|
108
|
+
- Plugin integration (can be selectively enabled for faster startup).
|
|
109
|
+
|
|
110
|
+
- Random generator for base colors. Powers `randomhue` color scheme.
|
|
111
|
+
|
|
112
|
+
- Lua function to compute palette used in color scheme.
|
|
113
|
+
|
|
114
|
+
- Bundled color schemes. See [bundled-color-schemes]().
|
|
115
|
+
|
|
116
|
+
Supported highlight groups:
|
|
117
|
+
|
|
118
|
+
- All built-in UI and syntax groups.
|
|
119
|
+
|
|
120
|
+
- Built-in Neovim LSP and diagnostic.
|
|
121
|
+
|
|
122
|
+
- Tree-sitter.
|
|
123
|
+
|
|
124
|
+
- LSP semantic tokens.
|
|
125
|
+
|
|
126
|
+
- Plugins (either with explicit definition or by verification that default highlighting works appropriately):
|
|
127
|
+
- [nvim-mini/mini.nvim](https://nvim-mini.org/mini.nvim)
|
|
128
|
+
- [akinsho/bufferline.nvim](https://github.com/akinsho/bufferline.nvim)
|
|
129
|
+
- [anuvyklack/hydra.nvim](https://github.com/anuvyklack/hydra.nvim)
|
|
130
|
+
- [DanilaMihailov/beacon.nvim](https://github.com/DanilaMihailov/beacon.nvim)
|
|
131
|
+
- [folke/lazy.nvim](https://github.com/folke/lazy.nvim)
|
|
132
|
+
- [folke/noice.nvim](https://github.com/folke/noice.nvim)
|
|
133
|
+
- [folke/snacks.nvim](https://github.com/folke/snacks.nvim)
|
|
134
|
+
- [folke/todo-comments.nvim](https://github.com/folke/todo-comments.nvim)
|
|
135
|
+
- [folke/trouble.nvim](https://github.com/folke/trouble.nvim)
|
|
136
|
+
- [folke/which-key.nvim](https://github.com/folke/which-key.nvim)
|
|
137
|
+
- [ggandor/leap.nvim](https://github.com/ggandor/leap.nvim)
|
|
138
|
+
- [glepnir/dashboard-nvim](https://github.com/glepnir/dashboard-nvim)
|
|
139
|
+
- [glepnir/lspsaga.nvim](https://github.com/glepnir/lspsaga.nvim)
|
|
140
|
+
- [HiPhish/rainbow-delimiters.nvim](https://github.com/HiPhish/rainbow-delimiters.nvim)
|
|
141
|
+
- [hrsh7th/nvim-cmp](https://github.com/hrsh7th/nvim-cmp)
|
|
142
|
+
- [ibhagwan/fzf-lua](https://github.com/ibhagwan/fzf-lua)
|
|
143
|
+
- [justinmk/vim-sneak](https://github.com/justinmk/vim-sneak)
|
|
144
|
+
- [kevinhwang91/nvim-bqf](https://github.com/kevinhwang91/nvim-bqf)
|
|
145
|
+
- [kevinhwang91/nvim-ufo](https://github.com/kevinhwang91/nvim-ufo)
|
|
146
|
+
- [lewis6991/gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim)
|
|
147
|
+
- [lukas-reineke/indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim)
|
|
148
|
+
- [MeanderingProgrammer/render-markdown.nvim](https://github.com/MeanderingProgrammer/render-markdown.nvim)
|
|
149
|
+
- [neoclide/coc.nvim](https://github.com/neoclide/coc.nvim)
|
|
150
|
+
- [NeogitOrg/neogit](https://github.com/NeogitOrg/neogit)
|
|
151
|
+
- [nvim-lualine/lualine.nvim](https://github.com/nvim-lualine/lualine.nvim)
|
|
152
|
+
- [nvim-neo-tree/neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim)
|
|
153
|
+
- [nvim-telescope/telescope.nvim](https://github.com/nvim-telescope/telescope.nvim)
|
|
154
|
+
- [nvim-tree/nvim-tree.lua](https://github.com/nvim-tree/nvim-tree.lua)
|
|
155
|
+
- [OXY2DEV/helpview.nvim](https://github.com/OXY2DEV/helpview.nvim)
|
|
156
|
+
- [OXY2DEV/markview.nvim](https://github.com/OXY2DEV/markview.nvim)
|
|
157
|
+
- [phaazon/hop.nvim](https://github.com/phaazon/hop.nvim)
|
|
158
|
+
- [rcarriga/nvim-dap-ui](https://github.com/rcarriga/nvim-dap-ui)
|
|
159
|
+
- [rcarriga/nvim-notify](https://github.com/rcarriga/nvim-notify)
|
|
160
|
+
- [rlane/pounce.nvim](https://github.com/rlane/pounce.nvim)
|
|
161
|
+
- [romgrk/barbar.nvim](https://github.com/romgrk/barbar.nvim)
|
|
162
|
+
- [saghen/blink.cmp](https://github.com/saghen/blink.cmp)
|
|
163
|
+
- [stevearc/aerial.nvim](https://github.com/stevearc/aerial.nvim)
|
|
164
|
+
- [williamboman/mason.nvim](https://github.com/williamboman/mason.nvim)
|
|
165
|
+
|
|
166
|
+
## Installation
|
|
167
|
+
|
|
168
|
+
This plugin can be installed as part of 'mini.nvim' library (**recommended**) or as a standalone Git repository.
|
|
169
|
+
|
|
170
|
+
There are two branches to install from:
|
|
171
|
+
|
|
172
|
+
- `main` (default, **recommended**) will have latest development version of plugin. All changes since last stable release should be perceived as being in beta testing phase (meaning they already passed alpha-testing and are moderately settled).
|
|
173
|
+
- `stable` will be updated only upon releases with code tested during public beta-testing phase in `main` branch.
|
|
174
|
+
|
|
175
|
+
Here are code snippets for some common installation methods (use only one):
|
|
176
|
+
|
|
177
|
+
<details>
|
|
178
|
+
<summary><b>(Recommended)</b> With <a href="https://neovim.io/doc/user/helptag.html?tag=vim.pack">vim.pack</a> (on Neovim 0.12 and newer)</summary>
|
|
179
|
+
|
|
180
|
+
**Full library**
|
|
181
|
+
|
|
182
|
+
Follow ['mini.nvim' installation](https://nvim-mini.org/mini.nvim#installation).
|
|
183
|
+
|
|
184
|
+
**Standalone plugin**
|
|
185
|
+
|
|
186
|
+
Main branch:
|
|
187
|
+
|
|
188
|
+
```lua
|
|
189
|
+
vim.pack.add({ 'https://github.com/nvim-mini/mini.hues' })
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
Stable branch:
|
|
193
|
+
|
|
194
|
+
```lua
|
|
195
|
+
vim.pack.add({
|
|
196
|
+
{ src = 'https://github.com/nvim-mini/mini.hues', version = 'stable' },
|
|
197
|
+
})
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
</details>
|
|
201
|
+
|
|
202
|
+
<details>
|
|
203
|
+
<summary>With <a href="https://nvim-mini.org/mini.nvim/readmes/mini-deps">mini.deps</a> (before Neovim 0.12)</summary>
|
|
204
|
+
|
|
205
|
+
**Full library**
|
|
206
|
+
|
|
207
|
+
Follow [recommended 'mini.deps' installation](https://nvim-mini.org/mini.nvim/readmes/mini-deps#installation).
|
|
208
|
+
|
|
209
|
+
**Standalone plugin**:
|
|
210
|
+
|
|
211
|
+
Main branch:
|
|
212
|
+
|
|
213
|
+
```lua
|
|
214
|
+
add('nvim-mini/mini.hues')
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
Stable branch:
|
|
218
|
+
|
|
219
|
+
```lua
|
|
220
|
+
add({ source = 'nvim-mini/mini.hues', checkout = 'stable' })
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
</details>
|
|
224
|
+
|
|
225
|
+
<details>
|
|
226
|
+
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
|
|
227
|
+
|
|
228
|
+
**Full library**
|
|
229
|
+
|
|
230
|
+
Follow ['mini.nvim' installation](https://nvim-mini.org/mini.nvim#installation).
|
|
231
|
+
|
|
232
|
+
**Standalone plugin**
|
|
233
|
+
|
|
234
|
+
Main branch:
|
|
235
|
+
|
|
236
|
+
```lua
|
|
237
|
+
{ 'nvim-mini/mini.hues', version = false },
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
Stable branch:
|
|
241
|
+
|
|
242
|
+
```lua
|
|
243
|
+
{ 'nvim-mini/mini.hues', version = '*' },
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
</details>
|
|
247
|
+
|
|
248
|
+
**Important**: don't forget to call `require('mini.hues').setup()` **with `background` and `foreground` fields** to enable its functionality.
|
|
249
|
+
|
|
250
|
+
**Note**: if you are on Windows, there might be problems with too long file paths (like `error: unable to create file <some file name>: Filename too long`). Try doing one of the following:
|
|
251
|
+
|
|
252
|
+
- Enable corresponding git global config value: `git config --system core.longpaths true`. Then try to reinstall.
|
|
253
|
+
- Install plugin in other place with shorter path.
|
|
254
|
+
|
|
255
|
+
## Default config
|
|
256
|
+
|
|
257
|
+
```lua
|
|
258
|
+
-- No need to copy this inside `setup()`. Will be used automatically.
|
|
259
|
+
{
|
|
260
|
+
-- REQUIRED base colors as '#rrggbb' hex strings
|
|
261
|
+
background = nil,
|
|
262
|
+
foreground = nil,
|
|
263
|
+
|
|
264
|
+
-- Number of hues used for non-base colors
|
|
265
|
+
n_hues = 8,
|
|
266
|
+
|
|
267
|
+
-- Saturation. One of 'low', 'lowmedium', 'medium', 'mediumhigh', 'high'.
|
|
268
|
+
saturation = 'medium',
|
|
269
|
+
|
|
270
|
+
-- Accent color. One of: 'bg', 'fg', 'red', 'orange', 'yellow', 'green',
|
|
271
|
+
-- 'cyan', 'azure', 'blue', 'purple'
|
|
272
|
+
accent = 'bg',
|
|
273
|
+
|
|
274
|
+
-- Plugin integrations. Use `default = false` to disable all integrations.
|
|
275
|
+
-- Also can be set per plugin (see |MiniHues.config|).
|
|
276
|
+
plugins = { default = true },
|
|
277
|
+
|
|
278
|
+
-- Whether to auto adjust highlight groups based on certain events
|
|
279
|
+
autoadjust = true,
|
|
280
|
+
}
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
## Similar plugins
|
|
284
|
+
|
|
285
|
+
- [mini.base16](https://nvim-mini.org/mini.nvim/readmes/mini-base16)
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
<p align="center"> <img src="https://github.com/nvim-mini/assets/blob/main/logo-2/logo-icons_readme.png?raw=true" alt="mini.icons" style="max-width:100%;border:solid 2px"/> </p>
|
|
2
|
+
|
|
3
|
+
### Icon provider
|
|
4
|
+
|
|
5
|
+
See more details in [Features](#features) and [Documentation](../doc/mini-icons.txt).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
> [!NOTE]
|
|
10
|
+
> This was previously hosted at a personal `echasnovski` GitHub account. It was transferred to a dedicated organization to improve long term project stability. See more details [here](https://github.com/nvim-mini/mini.nvim/discussions/1970).
|
|
11
|
+
|
|
12
|
+
⦿ This is a part of [mini.nvim](https://nvim-mini.org/mini.nvim) library. Please use [this link](https://nvim-mini.org/mini.nvim/readmes/mini-icons) if you want to mention this module.
|
|
13
|
+
|
|
14
|
+
⦿ All contributions (issues, pull requests, discussions, etc.) are done inside of 'mini.nvim'.
|
|
15
|
+
|
|
16
|
+
⦿ See [whole library documentation](https://nvim-mini.org/mini.nvim/doc/mini-nvim) to learn about general design principles, disable/configuration recipes, and more.
|
|
17
|
+
|
|
18
|
+
⦿ See [MiniMax](https://nvim-mini.org/MiniMax) for a full config example that uses this module.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
If you want to help this project grow but don't know where to start, check out [contributing guides of 'mini.nvim'](https://nvim-mini.org/mini.nvim/CONTRIBUTING) or leave a Github star for 'mini.nvim' project and/or any its standalone Git repositories.
|
|
23
|
+
|
|
24
|
+
## Demo
|
|
25
|
+
|
|
26
|
+

|
|
27
|
+
|
|
28
|
+

|
|
29
|
+
|
|
30
|
+

|
|
31
|
+
|
|
32
|
+
## Features
|
|
33
|
+
|
|
34
|
+
- Provide icons with their highlighting via a single `MiniIcons.get()` for various categories: filetype, file/directory path, extension, operating system, LSP kind values. Icons and category defaults can be overridden.
|
|
35
|
+
|
|
36
|
+
- Configurable styles: "glyph" (icon glyphs) or "ascii" (non-glyph fallback).
|
|
37
|
+
|
|
38
|
+
- Fixed set of highlight groups (linked to built-in groups by default) for better blend with color scheme.
|
|
39
|
+
|
|
40
|
+
- Caching for maximum performance.
|
|
41
|
+
|
|
42
|
+
- Integration with `vim.filetype.add()` and `vim.filetype.match()`.
|
|
43
|
+
|
|
44
|
+
- Mocking methods of 'nvim-tree/nvim-web-devicons' for better integrations with plugins outside 'mini.nvim'. See `:h MiniIcons.mock_nvim_web_devicons()`.
|
|
45
|
+
|
|
46
|
+
- Tweaking built-in maps for "LSP kind" to include icons. In particular, this makes ['mini.completion'](https://nvim-mini.org/mini.nvim/readmes/mini-completion) use icons in LSP step. See `:h MiniIcons.tweak_lsp_kind()`.
|
|
47
|
+
|
|
48
|
+
Notes:
|
|
49
|
+
|
|
50
|
+
- It is not a goal to become a collection of icons for as much use cases as possible. There are specific criteria for icon data to be included as built-in in each category (see `:h MiniIcons.get()`). The main supported category is "filetype".
|
|
51
|
+
|
|
52
|
+
For more information see these parts of help:
|
|
53
|
+
|
|
54
|
+
- `:h MiniIcons-in-other-plugins` (for plugin authors)
|
|
55
|
+
|
|
56
|
+
## Dependencies
|
|
57
|
+
|
|
58
|
+
Suggested dependencies:
|
|
59
|
+
|
|
60
|
+
- Terminal emulator that supports showing special utf8 glyphs, possibly with "overflow" view (displaying is done not in one but two visual cells). Most modern feature-rich terminal emulators support this out of the box: WezTerm, Kitty, Alacritty, iTerm2, Ghostty.
|
|
61
|
+
|
|
62
|
+
Not having "overflow" feature only results into smaller icons. Not having support for special utf8 glyphs will result into seemingly random symbols (or question mark squares) instead of icon glyphs.
|
|
63
|
+
|
|
64
|
+
- Font that supports [Nerd Fonts](https://www.nerdfonts.com) icons from version 3.0.0+ (in particular `nf-md-*` class).
|
|
65
|
+
This should be configured on terminal emulator level either by using font patched with Nerd Fonts icons or using [`NerdFontsSymbolsOnly`](https://github.com/ryanoasis/nerd-fonts/releases) font as a fallback for glyphs that are not supported in main font.
|
|
66
|
+
|
|
67
|
+
If using terminal emulator and/or font with icon support is impossible, use `config.style = 'ascii'`. It will use a (less visually appealing) set of non-glyph icons.
|
|
68
|
+
|
|
69
|
+
## Installation
|
|
70
|
+
|
|
71
|
+
This plugin can be installed as part of 'mini.nvim' library (**recommended**) or as a standalone Git repository.
|
|
72
|
+
|
|
73
|
+
There are two branches to install from:
|
|
74
|
+
|
|
75
|
+
- `main` (default, **recommended**) will have latest development version of plugin. All changes since last stable release should be perceived as being in beta testing phase (meaning they already passed alpha-testing and are moderately settled).
|
|
76
|
+
- `stable` will be updated only upon releases with code tested during public beta-testing phase in `main` branch.
|
|
77
|
+
|
|
78
|
+
Here are code snippets for some common installation methods (use only one):
|
|
79
|
+
|
|
80
|
+
<details>
|
|
81
|
+
<summary><b>(Recommended)</b> With <a href="https://neovim.io/doc/user/helptag.html?tag=vim.pack">vim.pack</a> (on Neovim 0.12 and newer)</summary>
|
|
82
|
+
|
|
83
|
+
**Full library**
|
|
84
|
+
|
|
85
|
+
Follow ['mini.nvim' installation](https://nvim-mini.org/mini.nvim#installation).
|
|
86
|
+
|
|
87
|
+
**Standalone plugin**
|
|
88
|
+
|
|
89
|
+
Main branch:
|
|
90
|
+
|
|
91
|
+
```lua
|
|
92
|
+
vim.pack.add({ 'https://github.com/nvim-mini/mini.icons' })
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Stable branch:
|
|
96
|
+
|
|
97
|
+
```lua
|
|
98
|
+
vim.pack.add({
|
|
99
|
+
{ src = 'https://github.com/nvim-mini/mini.icons', version = 'stable' },
|
|
100
|
+
})
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
</details>
|
|
104
|
+
|
|
105
|
+
<details>
|
|
106
|
+
<summary>With <a href="https://nvim-mini.org/mini.nvim/readmes/mini-deps">mini.deps</a> (before Neovim 0.12)</summary>
|
|
107
|
+
|
|
108
|
+
**Full library**
|
|
109
|
+
|
|
110
|
+
Follow [recommended 'mini.deps' installation](https://nvim-mini.org/mini.nvim/readmes/mini-deps#installation).
|
|
111
|
+
|
|
112
|
+
**Standalone plugin**:
|
|
113
|
+
|
|
114
|
+
Main branch:
|
|
115
|
+
|
|
116
|
+
```lua
|
|
117
|
+
add('nvim-mini/mini.icons')
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Stable branch:
|
|
121
|
+
|
|
122
|
+
```lua
|
|
123
|
+
add({ source = 'nvim-mini/mini.icons', checkout = 'stable' })
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
</details>
|
|
127
|
+
|
|
128
|
+
<details>
|
|
129
|
+
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
|
|
130
|
+
|
|
131
|
+
**Full library**
|
|
132
|
+
|
|
133
|
+
Follow ['mini.nvim' installation](https://nvim-mini.org/mini.nvim#installation).
|
|
134
|
+
|
|
135
|
+
**Standalone plugin**
|
|
136
|
+
|
|
137
|
+
Main branch:
|
|
138
|
+
|
|
139
|
+
```lua
|
|
140
|
+
{ 'nvim-mini/mini.icons', version = false },
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Stable branch:
|
|
144
|
+
|
|
145
|
+
```lua
|
|
146
|
+
{ 'nvim-mini/mini.icons', version = '*' },
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
</details>
|
|
150
|
+
|
|
151
|
+
**Important**: don't forget to call `require('mini.icons').setup()` to enable its functionality.
|
|
152
|
+
|
|
153
|
+
**Note**: if you are on Windows, there might be problems with too long file paths (like `error: unable to create file <some file name>: Filename too long`). Try doing one of the following:
|
|
154
|
+
|
|
155
|
+
- Enable corresponding git global config value: `git config --system core.longpaths true`. Then try to reinstall.
|
|
156
|
+
- Install plugin in other place with shorter path.
|
|
157
|
+
|
|
158
|
+
## Default config
|
|
159
|
+
|
|
160
|
+
```lua
|
|
161
|
+
-- No need to copy this inside `setup()`. Will be used automatically.
|
|
162
|
+
{
|
|
163
|
+
-- Icon style: 'glyph' or 'ascii'
|
|
164
|
+
style = 'glyph',
|
|
165
|
+
|
|
166
|
+
-- Customize per category. See `:h MiniIcons.config` for details.
|
|
167
|
+
default = {},
|
|
168
|
+
directory = {},
|
|
169
|
+
extension = {},
|
|
170
|
+
file = {},
|
|
171
|
+
filetype = {},
|
|
172
|
+
lsp = {},
|
|
173
|
+
os = {},
|
|
174
|
+
|
|
175
|
+
-- Control which extensions will be considered during "file" resolution
|
|
176
|
+
use_file_extension = function(ext, file) return true end,
|
|
177
|
+
}
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Similar plugins
|
|
181
|
+
|
|
182
|
+
- [nvim-tree/nvim-web-devicons](https://github.com/nvim-tree/nvim-web-devicons)
|
|
183
|
+
- [onsails/lspkind.nvim](https://github.com/onsails/lspkind.nvim)
|