refactor: move `mapleader` and `icons_enabled` to AstroNvim `opts`

pull/7/head
Micah Halter 2024-02-13 13:42:17 -05:00
parent 9d4c092e31
commit 395d8d895b
No known key found for this signature in database
GPG Key ID: 4224A6EA9A8CAAA8
1 changed files with 10 additions and 8 deletions

View File

@ -14,16 +14,18 @@ if not lazy_loaded then
vim.cmd.quit() vim.cmd.quit()
end end
-- must configure leader key before Lazy is set up
vim.g.mapleader = " "
-- Set to false to disable icons (if no Nerd Font is available)
vim.g.icons_enabled = true
---@type LazyConfig ---@type LazyConfig
lazy.setup({ lazy.setup({
-- TODO: change `branch="v4"` to `version="^4"` on release {
{ "AstroNvim/AstroNvim", branch = "v4", import = "astronvim.plugins" }, "AstroNvim/AstroNvim",
branch = "v4", -- TODO: change `branch="v4"` to `version="^4"` on release
import = "astronvim.plugins",
opts = { -- AstroNvim options must be set with the `import` key
mapleader = " ", -- This ensures the leader key must be configured before Lazy is set up
icons_enabled = true, -- Set to false to disable icons (if no Nerd Font is available)
pin_plugins = nil, -- Default will pin plugins when tracking `version` of AstroNvim, set to true/false to override
},
},
-- AstroCommunity: import any community modules here -- AstroCommunity: import any community modules here
-- TODO: Remove branch v4 on release -- TODO: Remove branch v4 on release
-- { "AstroNvim/astrocommunity", branch = "v4" }, -- { "AstroNvim/astrocommunity", branch = "v4" },