🚀feat!: Add astral.nvim

- Remove rootiest.nvim plugin
- Implements astral.nvim
This commit is contained in:
2024-07-26 14:06:08 -04:00
parent 994eae073b
commit a2ee0c6617
15 changed files with 291 additions and 191 deletions
+1 -19
View File
@@ -90,25 +90,7 @@ return {
config = function()
require("image").setup()
end,
cond = function()
local function is_useimage_enabled()
local useimage_file = vim.fn.stdpath("config") .. "/.useimage"
local content = vim.fn.readfile(useimage_file)[1] or ""
content = content:lower():gsub("%s+", "") -- convert to lowercase and remove whitespace
local enable_values = { ["true"] = true, ["1"] = true, ["yes"] = true }
if enable_values[content] then
local wterm = os.getenv("TERM_PROGRAM")
local kterm = os.getenv("TERM") or ""
if wterm and wterm:find("WezTerm") then
return true -- Using WezTerm
else
return kterm:find("kitty") ~= nil -- Using Kitty
end
end
return false
end
end,
cond = vim.g.useimage and not vim.g.neovide,
},
{ -- WezTerm
"willothy/wezterm.nvim",