local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not (vim.uv or vim.loop).fs_stat(lazypath) then local lazyrepo = "https://github.com/folke/lazy.nvim.git" local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) if vim.v.shell_error ~= 0 then vim.api.nvim_echo({ { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, { out, "WarningMsg" }, { "\nPress any key to exit..." }, }, true, {}) vim.fn.getchar() os.exit(1) end end vim.opt.rtp:prepend(lazypath) require("lazy").setup({ spec = { -- add LazyVim and import its plugins { "LazyVim/LazyVim", import = "lazyvim.plugins" }, -- import/override with your plugins { import = "plugins" }, }, defaults = { -- By default, only LazyVim 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 = false, -- 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. version = false, -- always use the latest git commit -- version = "*", -- try installing the latest stable version for plugins that support semver }, install = { colorscheme = { "tokyonight", "habamax" } }, checker = { enabled = true, -- check for plugin updates periodically notify = false, -- notify on update }, -- automatically check for plugin updates performance = { rtp = { -- disable some rtp plugins disabled_plugins = { "gzip", -- "matchit", -- "matchparen", -- "netrwPlugin", "tarPlugin", "tohtml", "tutor", "zipPlugin", }, }, }, }) require("rose-pine").setup({ variant = "auto", -- auto, main, moon, or dawn dark_variant = "main", -- main, moon, or dawn dim_inactive_windows = false, extend_background_behind_borders = true, enable = { terminal = true, legacy_highlights = true, -- Improve compatibility for previous versions of Neovim migrations = true, -- Handle deprecated options automatically }, styles = { bold = true, italic = true, transparency = false, }, groups = { border = "muted", link = "iris", panel = "surface", error = "love", hint = "iris", info = "foam", note = "pine", todo = "rose", warn = "gold", git_add = "foam", git_change = "rose", git_delete = "love", git_dirty = "rose", git_ignore = "muted", git_merge = "iris", git_rename = "pine", git_stage = "iris", git_text = "rose", git_untracked = "subtle", h1 = "iris", h2 = "foam", h3 = "rose", h4 = "gold", h5 = "pine", h6 = "foam", }, palette = { -- Override the builtin palette per variant -- moon = { -- base = '#18191a', -- overlay = '#363738', -- }, }, -- NOTE: Highlight groups are extended (merged) by default. Disable this -- per group via `inherit = false` highlight_groups = { -- Comment = { fg = "foam" }, -- StatusLine = { fg = "love", bg = "love", blend = 15 }, -- VertSplit = { fg = "muted", bg = "muted" }, -- Visual = { fg = "base", bg = "text", inherit = false }, }, before_highlight = function(group, highlight, palette) -- Disable all undercurls -- if highlight.undercurl then -- highlight.undercurl = false -- end -- -- Change palette colour -- if highlight.fg == palette.pine then -- highlight.fg = palette.foam -- end end, }) -- vim.cmd("colorscheme rose-pine") -- vim.cmd("colorscheme rose-pine-main") -- vim.cmd("colorscheme rose-pine-moon") vim.cmd("colorscheme rose-pine-dawn")