Revert "Merge pull request #37 from prertik/nvim-switch-to-current-theme"
This reverts commit 79a8d34cc5dedfcb9830bb4d218ee9d6486cd597, reversing changes made to d05020b7c17624cb4e2bd8debf319d8172da3bea.
This commit is contained in:
parent
79a8d34cc5
commit
609c8ef84e
@ -1,8 +1,4 @@
|
|||||||
local uv = vim.uv
|
return {
|
||||||
local file_path = vim.fn.expand("~/.config/omarchy/current/theme/neovim.lua")
|
|
||||||
|
|
||||||
-- Default configuration
|
|
||||||
local default = {
|
|
||||||
{
|
{
|
||||||
"LazyVim/LazyVim",
|
"LazyVim/LazyVim",
|
||||||
opts = {
|
opts = {
|
||||||
@ -10,13 +6,3 @@ local default = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Try to load custom theme, fallback to default
|
|
||||||
if uv.fs_stat(file_path) then
|
|
||||||
local success, result = pcall(dofile, file_path)
|
|
||||||
if success and type(result) == "table" then
|
|
||||||
return result
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return default
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user