Announcing ‘mini.basics’
Originally posted on Reddit
Hello, Neovim users!
It is me again, posting this time about mini.basics - a module of mini.nvim with common configuration presets for options, mappings, and autocommands. You can also install from a standalone Git repository.
A while back I did a public Neovim options survey (here are the results). One of the goals was to gather a commonly used option values to create a “crowd-sourced” moderate version of tpope/vim-sensible. Well, this is it.
It has the following features:
- Presets for common options (like ‘termguicolors’, ‘number’, ‘ignorecase’, etc.). It will only change option if it wasn’t manually set before. For more info see this portion of help file and/or this part of source code.
- Presets for common mappings (like
j
/k
to move by visible lines,<C-s>
to save, toggle common options, and much more). For more info see this portion of help file and/or this part of source code. - Presets for common autocommands (like highlight on yank, start Insert mode when opening terminal, etc.). For more info see this portion of help file and/or this part of source code.
Main goal of ‘mini.basics’ is to provide a relatively easier way for new-ish Neovim users to have a better “works out of the box” experience while having documented relevant options/mappings/autocommands to study. But more seasoned users almost surely will find something useful. Browsing source code and copying only some options/mappings/autocommands is ok, of course.
Amusingly, development of this “basic” module led to creation of two other “less basic” modules: mini.move (here is a the announcement) and one more that needs polishing. Initially I planned to incorporate most of tpope/vim-unimpaired in ‘mini.basics’, but decided to use here only option toggling mappings (with default \
prefix; can be configured); “next/previous” functionality will be in separate module. Stay tuned!
Please, check it out and tell me what you think! Either here in comments or in dedicated beta-testing issue.
Thanks!