Use this template to write your own xplr plugin.
NOTE: The
src
directory is a symlink to.
for compatibility reasons. It may be removed in the future.
- Some tool
-
Add the following line in
~/.config/xplr/init.lua
local home = os.getenv("HOME") package.path = home .. "/.config/xplr/plugins/?/init.lua;" .. home .. "/.config/xplr/plugins/?.lua;" .. package.path
-
Clone the plugin
mkdir -p ~/.config/xplr/plugins git clone https://github.com/{username}/{plugin}.xplr ~/.config/xplr/plugins/{plugin}
-
Require the module in
~/.config/xplr/init.lua
require("{plugin}").setup() -- Or require("{plugin}").setup{ mode = "action", key = ":", } -- Type `::` and enjoy.
- Some cool feature