From 4d1d8e3fe72459790bf09bb0128e2c2c4c98e8d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nina=20Chl=C3=B3e=20Kassandra=20Rei=C3=9F?= Date: Thu, 18 Jun 2026 20:36:36 +0200 Subject: [PATCH] Move configuration to core --- init.lua | 24 ++---------------------- lua/core.lua | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 22 deletions(-) create mode 100644 lua/core.lua diff --git a/init.lua b/init.lua index 5005469..1d12f65 100644 --- a/init.lua +++ b/init.lua @@ -1,22 +1,2 @@ --- Basic setup configuration -require("vanilla") - -vim.cmd("source ~/.config/nvim/viml/automacro.vim") - --- Lazy plugin setup -local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" -if not vim.loop.fs_stat(lazypath) then - vim.fn.system({ - "git", - "clone", - "--filter=blob:none", - "https://github.com/folke/lazy.nvim.git", - "--branch=stable", -- latest stable release - lazypath, - }) -end -vim.opt.rtp:prepend(lazypath) - -require("lazy").setup("plugins") - -require("plugconfig") +-- Just load core on non nixos systems +require("core") diff --git a/lua/core.lua b/lua/core.lua new file mode 100644 index 0000000..5005469 --- /dev/null +++ b/lua/core.lua @@ -0,0 +1,22 @@ +-- Basic setup configuration +require("vanilla") + +vim.cmd("source ~/.config/nvim/viml/automacro.vim") + +-- Lazy plugin setup +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not vim.loop.fs_stat(lazypath) then + vim.fn.system({ + "git", + "clone", + "--filter=blob:none", + "https://github.com/folke/lazy.nvim.git", + "--branch=stable", -- latest stable release + lazypath, + }) +end +vim.opt.rtp:prepend(lazypath) + +require("lazy").setup("plugins") + +require("plugconfig")