AstroNvim v5 (#29)

* fix(astrocore): update to the new `diagnostics` settings style

* fix(mason): move to installing Mason packages with `mason-tool-installer.nvim`

* fix(user): update dashboard header example to use `snacks.dashboard`

* fix(lazy_setup): bump version to v5 for release
This commit is contained in:
Micah Halter 2025-03-26 14:57:20 -04:00 committed by GitHub
parent 1f2e5231ef
commit 4f9610c3b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 39 additions and 47 deletions

View File

@ -1,7 +1,7 @@
require("lazy").setup({ require("lazy").setup({
{ {
"AstroNvim/AstroNvim", "AstroNvim/AstroNvim",
version = "^4", -- Remove version tracking to elect for nightly AstroNvim version = "^5", -- Remove version tracking to elect for nightly AstroNvim
import = "astronvim.plugins", import = "astronvim.plugins",
opts = { -- AstroNvim options must be set here with the `import` key opts = { -- AstroNvim options must be set here with the `import` key
mapleader = " ", -- This ensures the leader key must be configured before Lazy is set up mapleader = " ", -- This ensures the leader key must be configured before Lazy is set up

View File

@ -15,7 +15,7 @@ return {
large_buf = { size = 1024 * 256, lines = 10000 }, -- set global limits for large files for disabling features like treesitter large_buf = { size = 1024 * 256, lines = 10000 }, -- set global limits for large files for disabling features like treesitter
autopairs = true, -- enable autopairs at start autopairs = true, -- enable autopairs at start
cmp = true, -- enable completion at start cmp = true, -- enable completion at start
diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on) diagnostics = { virtual_text = true, virtual_lines = false }, -- diagnostic settings on startup
highlighturl = true, -- highlight URLs at start highlighturl = true, -- highlight URLs at start
notifications = true, -- enable notifications at start notifications = true, -- enable notifications at start
}, },

View File

@ -1,38 +1,27 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- Customize Mason plugins -- Customize Mason
---@type LazySpec ---@type LazySpec
return { return {
-- use mason-lspconfig to configure LSP installations -- use mason-tool-installer for automatically installing Mason packages
{ {
"williamboman/mason-lspconfig.nvim", "WhoIsSethDaniel/mason-tool-installer.nvim",
-- overrides `require("mason-lspconfig").setup(...)` -- overrides `require("mason-tool-installer").setup(...)`
opts = {
ensure_installed = {
"lua_ls",
-- add more arguments for adding more language servers
},
},
},
-- use mason-null-ls to configure Formatters/Linter installation for null-ls sources
{
"jay-babu/mason-null-ls.nvim",
-- overrides `require("mason-null-ls").setup(...)`
opts = { opts = {
-- Make sure to use the names found in `:Mason`
ensure_installed = { ensure_installed = {
-- install language servers
"lua-language-server",
-- install formatters
"stylua", "stylua",
-- add more arguments for adding more null-ls sources
}, -- install debuggers
}, "debugpy",
},
{ -- install any other package
"jay-babu/mason-nvim-dap.nvim", "tree-sitter-cli",
-- overrides `require("mason-nvim-dap").setup(...)`
opts = {
ensure_installed = {
"python",
-- add more arguments for adding more debuggers
}, },
}, },
}, },

View File

@ -1,6 +1,7 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- You can also add or configure plugins by creating files in this `plugins/` folder -- You can also add or configure plugins by creating files in this `plugins/` folder
-- PLEASE REMOVE THE EXAMPLES YOU HAVE NO INTEREST IN BEFORE ENABLING THIS FILE
-- Here are some examples: -- Here are some examples:
---@type LazySpec ---@type LazySpec
@ -17,26 +18,28 @@ return {
-- == Examples of Overriding Plugins == -- == Examples of Overriding Plugins ==
-- customize alpha options -- customize dashboard options
{ {
"goolord/alpha-nvim", "folke/snacks.nvim",
opts = function(_, opts) opts = {
-- customize the dashboard header dashboard = {
opts.section.header.val = { preset = {
" █████ ███████ ████████ ██████ ██████", header = table.concat({
"██ ██ ██ ██ ██ ██ ██ ██", " █████ ███████ ████████ ██████ ██████ ",
"███████ ███████ ██ ██████ ██ ██", "██ ██ ██ ██ ██ ██ ██ ██",
"██ ██ ██ ██ ██ ██ ██ ██", "███████ ███████ ██ ██████ ██ ██",
"██ ██ ███████ ██ ██ ██ ██████", "██ ██ ██ ██ ██ ██ ██ ██",
" ", "██ ██ ███████ ██ ██ ██ ██████ ",
" ███  ██ ██  ██ ██ ███  ███", "",
" ████  ██ ██  ██ ██ ████  ████", "███  ██ ██  ██ ██ ███  ███",
" ██ ██  ██ ██  ██ ██ ██ ████ ██", "████  ██ ██  ██ ██ ████  ████",
" ██  ██ ██  ██  ██  ██ ██  ██  ██", "██ ██  ██ ██  ██ ██ ██ ████ ██",
" ██   ████   ████   ██ ██  ██", "██  ██ ██  ██  ██  ██ ██  ██  ██",
} "██   ████   ████   ██ ██  ██",
return opts }, "\n"),
end, },
},
},
}, },
-- You can disable default plugins as follows: -- You can disable default plugins as follows: