add xplr configs
This commit is contained in:
parent
ff2b30079e
commit
fed35b0af3
2 changed files with 40 additions and 0 deletions
5
home/private_dot_config/xplr/init.lua
Normal file
5
home/private_dot_config/xplr/init.lua
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
package.path = os.getenv("HOME") .. '/.config/xplr/lua/?.lua'
|
||||||
|
require("plugins")
|
||||||
|
|
||||||
|
version = "0.19.4"
|
||||||
|
|
35
home/private_dot_config/xplr/lua/plugins.lua
Normal file
35
home/private_dot_config/xplr/lua/plugins.lua
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
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',
|
||||||
|
'prncss-xyz/icons.xplr',
|
||||||
|
{'sayanarijit/zoxide.xplr',
|
||||||
|
setup = {
|
||||||
|
mode = "default",
|
||||||
|
key = "Z",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
auto_install = true,
|
||||||
|
auto_cleanup = true,
|
||||||
|
})
|
Loading…
Reference in a new issue