refactor!: options moved to AstroCore

pull/7/head
Micah Halter 2024-02-13 10:31:51 -05:00
parent 568db39c67
commit 4aa332ee0b
No known key found for this signature in database
GPG Key ID: 4224A6EA9A8CAAA8
3 changed files with 23 additions and 12 deletions

View File

@ -14,6 +14,12 @@ 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 -- TODO: change `branch="v4"` to `version="^4"` on release

View File

@ -1,12 +0,0 @@
-- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/AstroNvim/AstroNvim/blob/main/lua/astronvim/options.lua
-- Add any additional options here
-- vim.opt.relativenumber = true -- sets vim.opt.relativenumber
-- vim.opt.number = true -- sets vim.opt.number
-- vim.opt.spell = false -- sets vim.opt.spell
-- vim.opt.signcolumn = "auto" -- sets vim.opt.signcolumn to auto
-- vim.opt.wrap = false -- sets vim.opt.wrap
-- vim.g.mapleader = " " -- sets vim.g.mapleader
-- vim.g.icons_enabled = false -- disable icons in the UI (disable if no nerd font is available)

17
lua/plugins/options.lua Normal file
View File

@ -0,0 +1,17 @@
if true then return {} end -- REMOVE THIS LINE TO ACTIVATE THIS FILE
return {
"AstroNvim/astrocore",
---@type AstroCoreOpts
opts = {
options = {
opt = {
relativenumber = true, -- sets vim.opt.relativenumber
number = true, -- sets vim.opt.number
spell = false, -- sets vim.opt.spell
signcolumn = "auto", -- sets vim.opt.signcolumn to auto
wrap = false, -- sets vim.opt.wrap
},
},
},
}