mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
success changing colorscheme to rose-pine
This commit is contained in:
parent
de458a2ac4
commit
379cc67758
1 changed files with 50 additions and 42 deletions
|
|
@ -1,50 +1,58 @@
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||||
if vim.v.shell_error ~= 0 then
|
if vim.v.shell_error ~= 0 then
|
||||||
vim.api.nvim_echo({
|
vim.api.nvim_echo({
|
||||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||||
{ out, "WarningMsg" },
|
{ out, "WarningMsg" },
|
||||||
{ "\nPress any key to exit..." },
|
{ "\nPress any key to exit..." },
|
||||||
}, true, {})
|
}, true, {})
|
||||||
vim.fn.getchar()
|
vim.fn.getchar()
|
||||||
os.exit(1)
|
os.exit(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
spec = {
|
spec = {
|
||||||
-- add LazyVim and import its plugins
|
-- add LazyVim and import its plugins
|
||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
-- import/override with your plugins
|
{
|
||||||
{ import = "plugins" },
|
"rose-pine/neovim",
|
||||||
},
|
as = "rose-pine",
|
||||||
defaults = {
|
config = function()
|
||||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
require("rose-pine").setup()
|
||||||
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
vim.cmd('colorscheme rose-pine')
|
||||||
lazy = false,
|
end,
|
||||||
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
},
|
||||||
-- have outdated releases, which may break your Neovim install.
|
-- import/override with your plugins
|
||||||
version = false, -- always use the latest git commit
|
{ import = "plugins" },
|
||||||
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
},
|
||||||
},
|
defaults = {
|
||||||
install = { colorscheme = { "rose-pine" } },
|
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||||
checker = { enabled = true }, -- automatically check for plugin updates
|
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||||
performance = {
|
lazy = false,
|
||||||
rtp = {
|
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||||
-- disable some rtp plugins
|
-- have outdated releases, which may break your Neovim install.
|
||||||
disabled_plugins = {
|
version = false, -- always use the latest git commit
|
||||||
"gzip",
|
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||||
-- "matchit",
|
},
|
||||||
-- "matchparen",
|
install = { colorscheme = { "rose-pine" } },
|
||||||
-- "netrwPlugin",
|
checker = { enabled = true }, -- automatically check for plugin updates
|
||||||
"tarPlugin",
|
performance = {
|
||||||
"tohtml",
|
rtp = {
|
||||||
"tutor",
|
-- disable some rtp plugins
|
||||||
"zipPlugin",
|
disabled_plugins = {
|
||||||
},
|
"gzip",
|
||||||
|
-- "matchit",
|
||||||
|
-- "matchparen",
|
||||||
|
-- "netrwPlugin",
|
||||||
|
"tarPlugin",
|
||||||
|
"tohtml",
|
||||||
|
"tutor",
|
||||||
|
"zipPlugin",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue