aboutsummaryrefslogtreecommitdiff
path: root/lua/startup/utils.lua
diff options
context:
space:
mode:
authormax397574 <[email protected]>2021-11-22 12:53:46 +0100
committermax397574 <[email protected]>2021-11-22 12:53:46 +0100
commit40f003900c0ef8246929dcf8378a194130fdc26c (patch)
tree14ff5d8905dfaca4ec9920a862d5bbb2ce42fd1f /lua/startup/utils.lua
parent534005a19f15682e6d9cdd1421fb741cc158f885 (diff)
chore: autoformat with stylua
Diffstat (limited to 'lua/startup/utils.lua')
-rw-r--r--lua/startup/utils.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/startup/utils.lua b/lua/startup/utils.lua
index c80bcfa..c40fcf9 100644
--- a/lua/startup/utils.lua
+++ b/lua/startup/utils.lua
@@ -21,15 +21,15 @@ end
---@param theme_name string theme to load
---@return table settings
function U.load_theme(theme_name)
- local path = "lua/startup/themes/"..theme_name..".lua"
+ local path = "lua/startup/themes/" .. theme_name .. ".lua"
local files = vim.api.nvim_get_runtime_file(path, true)
local settings
- if #files ==0 then
- path = "lua/startup/themes"..theme_name.."/init.lua"
+ if #files == 0 then
+ path = "lua/startup/themes" .. theme_name .. "/init.lua"
files = vim.api.nvim_get_runtime_file(path, true)
end
- if #files ==0 then
- error("lua/startup/themes/"..theme_name..".lua".." not found")
+ if #files == 0 then
+ error("lua/startup/themes/" .. theme_name .. ".lua" .. " not found")
elseif #files == 1 then
settings = dofile(files[1])
else