Ⅰ. 插件描述
Easy access to nvim optionsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'teto/nvim-palette'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'teto/nvim-palette'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'teto/nvim-palette'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/teto/nvim-palette
Ⅳ. 文档说明
# nvim-palette
Change nvim options at runtime without remembering their name !
nvim-palette will fuzzy-search the option depending on your description and help
you change it (automatic toggling of boolean options for instance).

Installation
This is a remote plugin, it won't work in vim.
As dependancies, you need pandas (to load ./data/options.mpack) and fzf:
- python -mpip install --user pandas
- Installation in neovim with vim-plug:
Plug 'junegunn/fzf' " if not installed already
Plug 'teto/nvim-palette', { 'do': ':UpdateRemotePlugins'}Configuration
Once installed, run the command :Palette to see the plugin in action.
The plugin is still rough/slow and is more a PoC than a production-ready plugin.
I hope someone with more time can either submit PRs or fork it
See :h palette for more details.
Settings are loaded from the file options.mpack generated via this PR
Todo
There are many ways to improve the plugin:
- filter settings according to scope (global/buffer/window)
- print the Switch ON/OFF in color (via colorama?)
accept more entries
Add menu entries (like those defined for gvim)- ...and their translations (in runtime/lang/menu_* for instance. with gettext)
- optimization, it's a bit of a PoC, performance wasn't a concern
- work with denite/ctrlp
The entries of the plugin are currently parsed from options.csv, a file generated by some custom scripts parsing neovim's help and options.lua.
One of the objective is to make these scripts/information (setting description) easier to get in general.
Credits
To vim authors & the fantastic neovim community, very helpful and with great
vision (bfredl, jamessan, justinmk, mhinz etc)