You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
614 B
28 lines
614 B
vim.g.mapleader = " "
|
|
require("junikim")
|
|
|
|
local function script_path()
|
|
local str = debug.getinfo(2, 'S').source:sub(2)
|
|
return str:match('(.*' .. '/' .. ')')
|
|
end
|
|
|
|
local themepkgs = {}
|
|
local success, theme = pcall(require, "themes")
|
|
if not success then
|
|
local file = io.open(script_path() .. './lua/themes/init.lua', 'w')
|
|
if file ~= nil then
|
|
file:write('return require("themes.catppuccin")')
|
|
file:close()
|
|
themepkgs = require("themes")
|
|
else
|
|
themepkgs = require("themes.everforest")
|
|
end
|
|
else
|
|
themepkgs = theme
|
|
end
|
|
|
|
|
|
require("lazy").setup({
|
|
{ import = 'junikim.plugins' },
|
|
themepkgs
|
|
})
|