add xplr
This commit is contained in:
parent
2ca4226f4d
commit
9fc9f17117
1 changed files with 33 additions and 0 deletions
33
dot_config/xplr/init.lua
Normal file
33
dot_config/xplr/init.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
version = '0.20.1'
|
||||
|
||||
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',
|
||||
'sayanarijit/fzf.xplr',
|
||||
'sayanarijit/zoxide.xplr',
|
||||
-- 'sayanarijit/alacritty.xplr'
|
||||
},
|
||||
auto_install = true,
|
||||
auto_cleanup = true,
|
||||
})
|
||||
Loading…
Add table
Reference in a new issue