-- Version check: require Neovim 0.11+ if vim.fn.has("nvim-0.11") == 0 then vim.api.nvim_echo({ { "ERROR: ", "ErrorMsg" }, { "This config requires Neovim 0.11 or higher.\n", "Normal" }, { "WARNING: ", "WarningMsg" }, { "Please update Neovim to use this configuration.", "Normal" }, }, true, {}) return end -- Set leader keys before lazy loads vim.g.mapleader = " " vim.g.maplocalleader = " " -- Bootstrap lazy.nvim local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not (vim.uv or vim.loop).fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath, }) end vim.opt.rtp:prepend(lazypath) -- Setup lazy.nvim require("lazy").setup({ { import = "bootstrap" }, { import = "plugins" }, }) -- Load Fennel config (compiled from fnl/config/init.fnl) pcall(require, "config.init")