Skip to content

Commit

Permalink
just a few changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fclivaz42 committed Jun 5, 2024
1 parent 26da6ca commit f83ef61
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
--[[ broller config :) ]] --
--[[ 42-Nvim config file ]] --
--
-- 42-Nvim is a neovim configuration, supercharged for 42 Students.

-- Set Vim settings. Necessary before lazy is run.
require "config.vim_settings"
Expand Down Expand Up @@ -28,16 +30,18 @@ end
-- Load Lazy and make sure every plugin is installed.
require "lazy_load"

-- Load config/init.lua
-- Load config/init.lua which will load every plugin configuration.
require "config"

-- Launch! :)
if (vim.g.user42 == nil) then
vim.g.user42 = vim.env.USER
end

vim.notify = require("notify")
vim.notify("Welcome back " .. vim.g.user42 .. "! :)\nUse 'space-T' to switch between themes.", "info", { title = " 42-Nvim" })

if (vim.g.user42 == "SET YOUR USER UP") then
vim.notify("If you see this you havent configured your stuff!\nDon't forget to take a peek to your ~/.config/nvim", "error", { title = " 42-Nvim" })
if (vim.g.user42 ~= "SET YOUR USER UP") then
vim.notify("Welcome back " .. vim.g.user42 .. "! :)\nUse 'space-T' to switch between themes.", "info", { title = " 42-Nvim" })
else
vim.notify("If you see this you haven't configured your stuff!\nDon't forget to take a peek at your ~/.config/nvim", "error", { title = " 42-Nvim" })
end

0 comments on commit f83ef61

Please sign in to comment.