lixling[gui]

[ GitHub ]

Lixling: A minimalistic plugin manager for Lite XL, inspired by vim-plug.

The goal of this project was to create a small and straightforward plugin manager for Lite XL, free from dependencies on external Lua modules or programs (except for git), ensuring seamless integration with the text editor.

1. Usage

1.2 Commands

Let’s start by unraveling the commands:

Command Description
Lixling: Install Installs listed plugins
Lixling: Update Updates listed plugins
Lixling: Upgrade Updates Lixling itself
Lixling: Clear “Exiles” unlisted plugins

Here’s a quick breakdown:

1.1 Configuration

To initialize Lixling, add the following to your Lite XL config file:

local lixling = require("lixling")

lixling.plugins({
    -- Your plugins go here
})

For the basics of configuration, let’s cover defining a plugin and whitelisting a file:

local lixling = require("lixling")

lixling.plugins({
    -- Define a plugin to be downloaded (e.g., minimap)
    ["minimap"] = "https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/minimap.lua",

    -- Whitelist a plugin to prevent it from being exiled
    ["some-plugin"] = "",
})

In the above configuration, we’ve defined a plugin called “minimap” with a raw URL for download. Running the install command will download and place this file in the plugins directory, requiring a Lite XL reload. Whitelisting is demonstrated with “some-plugin,” ensuring it won’t be exiled when the clear command is executed.

For more advanced options, such as specifying branches, renaming downloaded files, and post-download commands, check out the repo’s README.