feat!: Move to AstroNvim v4 distributed through lazy.nvim
This commit is contained in:
44
lua/config/lazy.lua
Normal file
44
lua/config/lazy.lua
Normal file
@@ -0,0 +1,44 @@
|
||||
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
-- stylua: ignore
|
||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable",
|
||||
lazypath })
|
||||
end
|
||||
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||
|
||||
-- TODO: set to true on release
|
||||
local USE_STABLE = false -- use stable releases of AstroNvim
|
||||
|
||||
local spec = {
|
||||
-- TODO: remove branch v4 on release
|
||||
{ "AstroNvim/AstroNvim", branch = "v4", version = USE_STABLE and "*" or nil, import = "astronvim.plugins" },
|
||||
}
|
||||
if USE_STABLE then table.insert(spec, { import = "astronvim.lazy_snapshot" }) end -- pin plugins to known stable versions/commits
|
||||
|
||||
require("lazy").setup {
|
||||
spec = vim.list_extend(spec, {
|
||||
-- AstroCommunity import any community modules here
|
||||
-- { "AstroNvim/astrocommunity" },
|
||||
-- { import = "astrocommunity.pack.lua" },
|
||||
{ import = "plugins" }, -- import/override with your plugins
|
||||
}),
|
||||
defaults = {
|
||||
-- By default, only AstroNvim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||
lazy = true,
|
||||
},
|
||||
install = { colorscheme = { "astrodark", "habamax" } },
|
||||
checker = { enabled = false }, -- automatically check for plugin updates
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins, add more to your liking
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
"netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
10
lua/config/options.lua
Normal file
10
lua/config/options.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
-- 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
|
16
lua/config/polish.lua
Normal file
16
lua/config/polish.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
-- This file is automatically ran last in the setup process and is a good place to configure
|
||||
-- augroups/autocommands and custom filetypes also this just pure lua so
|
||||
-- anything that doesn't fit in the normal config locations above can go here
|
||||
|
||||
-- Set up custom filetypes
|
||||
-- vim.filetype.add {
|
||||
-- extension = {
|
||||
-- foo = "fooscript",
|
||||
-- },
|
||||
-- filename = {
|
||||
-- ["Foofile"] = "fooscript",
|
||||
-- },
|
||||
-- pattern = {
|
||||
-- ["~/%.config/foo/.*"] = "fooscript",
|
||||
-- },
|
||||
-- }
|
Reference in New Issue
Block a user