Files
2026-06-09 14:23:18 +00:00

81 lines
2.9 KiB
Lua

-- Bootstrap lazy.nvim
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)
-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " "
--vim.g.maplocalleader = "\\"
require("config.options")
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- import your plugins
{ import = "plugins" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "everforest" } },
-- automatically check for plugin updates
checker = {
enabled = true,
notify = false
},
})
--setup colour indents
local highlight = {
"IndentHighlightEverForestGreen",
"IndentHighlightEverForestYellow",
"IndentHighlightEverForestBlue",
}
local hooks = require "ibl.hooks"
-- create the highlight groups in the highlight setup hook, so they are reset
-- every time the colorscheme changes
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
vim.api.nvim_set_hl(0, "IndentHighlightRed", { fg = "#E06C75" })
vim.api.nvim_set_hl(0, "IndentHighlightYellow", { fg = "#E5C07B" })
vim.api.nvim_set_hl(0, "IndentHighlightBlue", { fg = "#61AFEF" })
vim.api.nvim_set_hl(0, "IndentHighlightOrange", { fg = "#D19A66" })
vim.api.nvim_set_hl(0, "IndentHighlightGreen", { fg = "#98C379" })
vim.api.nvim_set_hl(0, "IndentHighlightViolet", { fg = "#C678DD" })
vim.api.nvim_set_hl(0, "IndentHighlightCyan", { fg = "#56B6C2" })
vim.api.nvim_set_hl(0, "IndentHighlightLightGray", { fg = "#BCCCDC" })
vim.api.nvim_set_hl(0, "IndentHighlightLightTurquoise", { fg = "#70f1bc" })
vim.api.nvim_set_hl(0, "IndentHighlightEverForestGreen", { fg = "#A7C080" })
vim.api.nvim_set_hl(0, "IndentHighlightEverForestYellow", { fg = "#DBBC7F" })
vim.api.nvim_set_hl(0, "IndentHighlightEverForestRed", { fg = "#E67E80" })
vim.api.nvim_set_hl(0, "IndentHighlightEverForestBlue", { fg = "#7FBBB3" })
vim.api.nvim_set_hl(0, "IndentHighlightDraculaBlue", { fg = "#8BE9FD"})
vim.api.nvim_set_hl(0, "IndentHighlightDraculaGreen", { fg = "#50FA7B"})
vim.api.nvim_set_hl(0, "IndentHighlightDraculaPink", { fg = "#FF79C6"})
vim.api.nvim_set_hl(0, "IndentHighlightDraculaYellow", { fg = "#F1Fa8C"})
end)
require("ibl").setup { indent = { highlight = highlight } }
require("config.keymaps")