nvim-palette icon indicating copy to clipboard operation
nvim-palette copied to clipboard

Easy access to nvim options

DEPRECATED: This plugin was meant as a PoC. I don't have time to maintain it and since https://github.com/neovim/neovim/pull/6288 has been merged, I expect plugin authors to leverage it. It's not at feature parity yet (November 2020) but will be soon, https://github.com/nvim-telescope/telescope.nvim can fuzzy search options via :Telescope vim_options.

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).

Readme

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
  • 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)