dippin-dotfiles/.config/xplr/plugins.lua
2025-02-04 21:06:01 -07:00

34 lines
779 B
Lua

-- Plugins handled via xpm.xplr (https://github.com/dtomvan/xpm.xplr)
local home = os.getenv("HOME")
local xpm_path = home .. "/.local/share/xplr/dtomvan/xpm.xplr"
local xpm_url = "https://github.com/dtomvan/xpm.xplr"
package.path = package.path
.. ";"
.. xpm_path
.. "/?.lua;"
.. xpm_path
.. "/?/init.lua"
os.execute(
string.format(
"[ -e '%s' ] || git clone '%s' '%s'",
xpm_path,
xpm_url,
xpm_path
)
)
require("xpm").setup({
plugins = {
-- Let xpm manage itself
'dtomvan/xpm.xplr',
-- Other plugins
'gitlab:hartan/web-devicons.xplr',
'sayanarijit/offline-docs.xplr',
'duganchen/one-table-column.xplr',
},
auto_install = true,
auto_cleanup = true
})