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")