astro-nvim-v3 - state of art

This commit is contained in:
huyjaky
2024-11-03 19:33:51 +07:00
parent dc03e0785d
commit e31b780eea
4 changed files with 51 additions and 53 deletions

View File

@@ -23,6 +23,8 @@ return {
{ "HiPhish/rainbow-delimiters.nvim", enabled = true },
{ "xiyaowong/transparent.nvim", enabled = true },
{ "MagicDuck/grug-far.nvim", enabled = false },
{ "loctvl842/monokai-pro.nvim", enabled = false },
{"xiyaowong/transparent.nvim", enabled = false}
-- { "hrsh7th/nvim-cmp", enabled = false },
}

View File

@@ -0,0 +1,47 @@
return {
"echasnovski/mini.icons",
opts = function(_, opts)
if vim.g.icons_enabled ~= false then
opts.style = "glyph" -- Use glyph icons when available
else
opts.style = "ascii" -- Fallback to ASCII if glyphs are disabled
end
end,
lazy = true,
specs = {
{ "nvim-tree/nvim-web-devicons", enabled = false, optional = true },
{
"nvim-neo-tree/neo-tree.nvim",
opts = {
default_component_configs = {
icon = {
provider = function(icon, node)
local text, hl
local mini_icons = require "mini.icons"
if node.type == "file" then
text, hl = mini_icons.get("file", node.name)
elseif node.type == "directory" then
text, hl = mini_icons.get("directory", node.name)
if node:is_expanded() then text = nil end
end
if text then icon.text = text end
if hl then icon.highlight = hl end
end,
},
kind_icon = {
provider = function(icon, node)
icon.text, icon.highlight = require("mini.icons").get("lsp", node.extra.kind.name)
end,
},
},
},
},
},
init = function()
package.preload["nvim-web-devicons"] = function()
require("mini.icons").mock_nvim_web_devicons()
return package.loaded["nvim-web-devicons"]
end
end,
}

View File

@@ -6,36 +6,7 @@ return {
config = function()
require("noice").setup {
-- Configuration here, or leave empty to use defaults
views = {
-- cmdline_popup = {
-- position = {
-- row = "50%",
-- col = "50%",
-- },
-- size = {
-- width = 60,
-- height = "auto",
-- },
-- },
-- popupmenu = {
-- relative = "editor",
-- position = {
-- row = 8,
-- col = "50%",
-- },
-- size = {
-- width = 60,
-- height = 10,
-- },
-- border = {
-- style = "rounded",
-- padding = { 0, 1 },
-- },
-- win_options = {
-- winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" },
-- },
-- },
},
views = { },
messages = {
enabled = false, -- disables the Noice messages UI
},
@@ -134,11 +105,5 @@ return {
})
end,
},
{
"catppuccin",
optional = true,
---@type CatppuccinOptions
opts = { integrations = { noice = true } },
},
},
}

View File

@@ -26,23 +26,7 @@ return {
opts.top_down = false
end,
},
-- Icons support
{
"echasnovski/mini.icons",
opts = function(_, opts)
if vim.g.icons_enabled == false then opts.style = "glyph" end
end,
lazy = true,
specs = {
{ "nvim-tree/nvim-web-devicons", enabled = false, optional = true },
},
init = function()
package.preload["nvim-web-devicons"] = function()
require("mini.icons").mock_nvim_web_devicons()
return package.loaded["nvim-web-devicons"]
end
end,
},
-- Transparent background
{
"xiyaowong/transparent.nvim",