Skip to content

usfbih8u/micro-autocomplete-tooltip

Repository files navigation

Micro Autocomplete Tooltip

Show suggestions in a tooltip at the cursor location. Works for buffers and the Command bar. Hit TAB and enjoy!

To cycle through the suggestions using CursorUp and CursorDown, you need to add the option "autocomplete_tooltip.EnableCursorUpDown" with any value other than false or nil to your settings.json file.

To add a prefix to the current suggestion, use the option autocomplete_tooltip.Prefix in settings.json.

🎨 Syntax and Colorscheme

To improve readability, a custom syntax and colorscheme are provided until Micro allows customization of colorschemes per buffer.

You can add the following line at the end of your current colorscheme: include autocomplete-tooltip. I recommend using a custom colorscheme that includes both your main colorscheme and this one.

# custom-colorscheme.micro
include "YOUR_MAIN_COLORSCHEME"
include "autocomplete-tooltip"
include "gutter-message" # 👀

You can change the colors inside colorschemes/autocomplete-tooltip.micro.

📦 Installation

⚠️ Do NOT change the name of the plugin directory. It is used as a prefix to avoid path collisions in package.path when requiring modules.

You can install this from the unofficial micro plugin channel by adding the following to your settings.json

"pluginchannels": [
    "https://raw.githubusercontent.com/Neko-Box-Coder/unofficial-plugin-channel/main/channel.json"
]

Then do micro -plugin install autocomplete_tooltip.

Alternatively, you can copy/clone this directly to your .config/micro/plug.

In Linux, you can copy/clone the repo anywhere and create a symlink inside .config/micro/plug using the ENABLE_FOR_MICRO.sh script.

Packages

No packages published

Contributors 2

  •  
  •