🚀feat!: Add astral.nvim
- Remove rootiest.nvim plugin - Implements astral.nvim
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"rootiest/astral.nvim",
|
||||
version = "*",
|
||||
--opts = { restore_colors = true },
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- --------------------------------- CODING ------------------------------------
|
||||
-- -----------------------------------------------------------------------------
|
||||
local rootiest = require("rootiest")
|
||||
|
||||
return {
|
||||
{ -- Codeium
|
||||
import = "lazyvim.plugins.extras.coding.codeium",
|
||||
cond = function()
|
||||
return rootiest.using_aitool("codeium")
|
||||
return vim.g.aitool == "codeium"
|
||||
end,
|
||||
},
|
||||
{ -- Copilot
|
||||
import = "lazyvim.plugins.extras.coding.copilot",
|
||||
cond = function()
|
||||
return rootiest.using_aitool("copilot")
|
||||
return vim.g.aitool == "copilot"
|
||||
end,
|
||||
},
|
||||
{ -- Tabnine
|
||||
import = "lazyvim.plugins.extras.coding.tabnine",
|
||||
cond = function()
|
||||
return rootiest.using_aitool("tabnine")
|
||||
return vim.g.aitool == "tabnine"
|
||||
end,
|
||||
},
|
||||
{ -- Minuet-AI
|
||||
@@ -29,7 +28,7 @@ return {
|
||||
require("minuet").setup({ provider = "openai" })
|
||||
end,
|
||||
cond = function()
|
||||
return rootiest.using_aitool("minuet")
|
||||
return vim.g.aitool == "minuet"
|
||||
end,
|
||||
},
|
||||
{ -- Yanky
|
||||
|
||||
+10
-89
@@ -1,8 +1,6 @@
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- --------------------------------- EDITOR ------------------------------------
|
||||
-- -----------------------------------------------------------------------------
|
||||
local rootiest = require("rootiest")
|
||||
|
||||
return {
|
||||
{ -- Edgy
|
||||
import = "lazyvim.plugins.extras.ui.edgy",
|
||||
@@ -30,6 +28,16 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
opts = {
|
||||
scope = { show_start = true, show_end = true },
|
||||
indent = {
|
||||
char = "⋯",
|
||||
tab_char = "⋯",
|
||||
},
|
||||
},
|
||||
},
|
||||
{ -- Outline
|
||||
import = "lazyvim.plugins.extras.editor.outline",
|
||||
},
|
||||
@@ -169,93 +177,6 @@ return {
|
||||
config = function()
|
||||
---@diagnostic disable-next-line: missing-parameter
|
||||
require("smoothcursor").setup()
|
||||
-- Define last cursor position icon
|
||||
vim.fn.sign_define("smoothcursor_n", { text = "" })
|
||||
vim.fn.sign_define("smoothcursor_v", { text = " " })
|
||||
vim.fn.sign_define("smoothcursor_V", { text = "" })
|
||||
vim.fn.sign_define("smoothcursor_i", { text = "" })
|
||||
vim.fn.sign_define("smoothcursor_�", { text = "" })
|
||||
vim.fn.sign_define("smoothcursor_R", { text = "" })
|
||||
end,
|
||||
},
|
||||
{ -- Hlchunk
|
||||
"shellRaining/hlchunk.nvim",
|
||||
event = "BufEnter",
|
||||
config = function()
|
||||
local cb = function()
|
||||
if vim.g.colors_name == "tokyonight" then
|
||||
return "#806d9c"
|
||||
elseif vim.g.colors_name:find("catppuccin") then
|
||||
local catpalette = require("catppuccin.palettes").get_palette()
|
||||
return catpalette.teal
|
||||
elseif vim.g.colors_name == "monochrome" or "github_dark" then
|
||||
return "#CCCCCC"
|
||||
elseif vim.g.colors_name == "gruvbox" then
|
||||
return "#a9b665"
|
||||
elseif vim.g.colors_name == "dracula" or "eldritch" then
|
||||
return "#50fa7b"
|
||||
elseif vim.g.colors_name == "onedark" or "nightfox" then
|
||||
return "#98C379"
|
||||
elseif vim.g.colors_name == "nord" then
|
||||
return "#81A1C1"
|
||||
elseif vim.g.colors_name == "kanagawa" then
|
||||
return "#73C8AD"
|
||||
elseif vim.g.colors_name == "everforest" then
|
||||
return "#8FBCBB"
|
||||
elseif vim.g.colors_name == "github_light" or "paper" then
|
||||
return "#3f3f5a"
|
||||
elseif vim.g.colors_name == "neofusion" then
|
||||
return "#420ADD"
|
||||
else
|
||||
return "#7581FF"
|
||||
end
|
||||
end
|
||||
local common_config = {
|
||||
chunk = {
|
||||
style = {
|
||||
{ fg = cb },
|
||||
},
|
||||
enable = true,
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
use_treesitter = true,
|
||||
chars = {
|
||||
"․․",
|
||||
"⁚⁚",
|
||||
"⁖⁖",
|
||||
"⁘⁘",
|
||||
"⁙⁙",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
},
|
||||
},
|
||||
}
|
||||
if vim.o.background == "dark" then
|
||||
common_config.indent.style = {
|
||||
{ fg = "#434437" },
|
||||
{ fg = "#2f4440" },
|
||||
{ fg = "#433054" },
|
||||
{ fg = "#284251" },
|
||||
{ fg = "#3e4451" },
|
||||
{ fg = "#565c64" },
|
||||
{ fg = "#6b737f" },
|
||||
{ fg = "#848a91" },
|
||||
}
|
||||
else
|
||||
common_config.indent.style = {
|
||||
{ fg = "#d0b0b0" },
|
||||
{ fg = "#b0b0d0" },
|
||||
{ fg = "#b0d0b0" },
|
||||
{ fg = "#a0a0a0" },
|
||||
{ fg = "#c0c0c0" },
|
||||
{ fg = "#e0e0e0" },
|
||||
{ fg = "#f0f0f0" },
|
||||
{ fg = "#ffffff" },
|
||||
}
|
||||
end
|
||||
require("hlchunk").setup(common_config)
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ return {
|
||||
{ -- Java
|
||||
import = "lazyvim.plugins.extras.lang.java",
|
||||
},
|
||||
{ -- Markdown-Preview
|
||||
"iamcco/markdown-preview.nvim",
|
||||
build = "cd app && yarn install",
|
||||
init = function()
|
||||
vim.g.mkdp_filetypes = { "markdown" }
|
||||
end,
|
||||
},
|
||||
-- { -- Markdown-Preview
|
||||
-- "iamcco/markdown-preview.nvim",
|
||||
-- build = "cd app && yarn install",
|
||||
-- init = function()
|
||||
-- vim.g.mkdp_filetypes = { "markdown" }
|
||||
-- end,
|
||||
-- },
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
+10
-3
@@ -1,7 +1,7 @@
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- --------------------------------- THEMES ------------------------------------
|
||||
-- -----------------------------------------------------------------------------
|
||||
local rootiest = require("rootiest")
|
||||
local astral = require("astral")
|
||||
|
||||
return {
|
||||
-- ----------------------- Themes --------------------------
|
||||
@@ -12,6 +12,13 @@ return {
|
||||
{ -- Catppuccin
|
||||
"catppuccin/nvim",
|
||||
lazy = false, -- Override
|
||||
integrations = {
|
||||
indent_blankline = {
|
||||
enabled = true,
|
||||
scope_color = "lavender",
|
||||
colored_indent_levels = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
{ -- Ayu
|
||||
"Shatur/neovim-ayu",
|
||||
@@ -74,13 +81,13 @@ return {
|
||||
set_dark_mode = function()
|
||||
vim.o.background = "dark"
|
||||
vim.cmd.colorscheme(
|
||||
rootiest.colortheme or "catppuccin-frappe" or "tokyonight"
|
||||
astral.colortheme or "catppuccin-frappe" or "tokyonight"
|
||||
)
|
||||
end,
|
||||
set_light_mode = function()
|
||||
vim.o.background = "light"
|
||||
vim.cmd.colorscheme(
|
||||
rootiest.colortheme or "catppuccin-latte" or "tokyonight-day"
|
||||
astral.colortheme or "catppuccin-latte" or "tokyonight-day"
|
||||
)
|
||||
end,
|
||||
},
|
||||
|
||||
+2
-26
@@ -21,20 +21,7 @@ return {
|
||||
},
|
||||
{ -- Wakatime
|
||||
"wakatime/vim-wakatime",
|
||||
cond = function()
|
||||
local function is_wakatime_enabled()
|
||||
local wakatime_file = vim.fn.stdpath("config") .. "/.wakatime"
|
||||
local content = vim.fn.readfile(wakatime_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
|
||||
return { enabled = true }
|
||||
else
|
||||
return { enabled = false }
|
||||
end
|
||||
end
|
||||
return is_wakatime_enabled()
|
||||
end,
|
||||
cond = vim.g.usewakatime,
|
||||
},
|
||||
{ -- Link following
|
||||
"chrishrb/gx.nvim",
|
||||
@@ -129,18 +116,7 @@ return {
|
||||
"m4xshen/hardtime.nvim",
|
||||
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
|
||||
opts = function()
|
||||
local function is_hardtime_enabled()
|
||||
local hardtime_file = vim.fn.stdpath("config") .. "/.hardtime"
|
||||
local content = vim.fn.readfile(hardtime_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
|
||||
return { enabled = true }
|
||||
else
|
||||
return { enabled = false }
|
||||
end
|
||||
end
|
||||
return is_hardtime_enabled()
|
||||
return { enabled = vim.g.usehardtime }
|
||||
end,
|
||||
},
|
||||
{ -- GitLinker
|
||||
|
||||
Reference in New Issue
Block a user