Switch to Astrov4
This commit is contained in:
41
lua/config/lazy.lua
Normal file
41
lua/config/lazy.lua
Normal file
@@ -0,0 +1,41 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.g.astronvim_first_install = true -- lets AstroNvim know that this is an initial installation
|
||||
vim.fn.system {
|
||||
"git",
|
||||
"clone",
|
||||
"--depth=1",
|
||||
"--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
|
||||
-- Whether or not to use stable releases of AstroNvim
|
||||
local USE_STABLE = false
|
||||
|
||||
require("lazy").setup {
|
||||
spec = {
|
||||
-- TODO: remove branch v4 on release
|
||||
{ "AstroNvim/AstroNvim", branch = "v4", version = USE_STABLE and "^4" or nil, import = "astronvim.plugins" },
|
||||
-- pin plugins to known working versions
|
||||
{ import = "astronvim.lazy_snapshot", cond = USE_STABLE },
|
||||
{ import = "plugins" },
|
||||
},
|
||||
install = { colorscheme = { "astrodark", "habamax" } },
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins, add more to your liking
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
"netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
22
lua/config/options.lua
Normal file
22
lua/config/options.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
vim.opt.background = "dark"
|
||||
vim.opt.clipboard = ""
|
||||
vim.opt.cmdheight = 1
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.foldmethod = "syntax"
|
||||
vim.opt.foldnestmax = 150
|
||||
vim.opt.grepprg = vim.fn.executable("rg") and "rg --vimgrep" or nil
|
||||
vim.opt.guifont = { "VictorMono NF", "Hack Nerd Font Mono", ":h10" }
|
||||
vim.opt.listchars = { tab = "> ", extends = ">", precedes = "<", space = "·" }
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = false
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.signcolumn = "auto"
|
||||
vim.opt.spell = false
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.textwidth = 120
|
||||
vim.opt.wrap = true
|
||||
|
||||
vim.opt.path:append("**") -- recursive search for find
|
||||
|
||||
-- Globals
|
||||
vim.g.rust_recommended_style = 0
|
||||
0
lua/config/polish.lua
Normal file
0
lua/config/polish.lua
Normal file
Reference in New Issue
Block a user