plugin_dir

Function plugin_dir 

Source
pub fn plugin_dir(plugin: &str) -> Result<PathBuf, Text>
Expand description

The path for a plugin’s auxiliary buffers

If you want to store something in a more permanent basis, and also possibly allow for the user to modify some buffers (e.g. a TOML buffer with definitions for various LSPs), you should place it in here.

This function will also create said directory, if it doesn’t already exist, only returning Some, if it managed to verify its existance.