From 4bed06edc2f53fceff48afff01b7ecd74c56fdad Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Thu, 13 Apr 2023 10:45:53 +0530 Subject: [PATCH] Fixed #241 Pass empty options for setting default configuration. --- CHANGELOG.md | 1 + colors/github_dark.vim | 2 +- lua/github-theme/init.lua | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4958fb4d..cdc9c5b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Issues Fix - #238 fixed +- #241 fixed ## [v0.0.7] - 16 January 2023 diff --git a/colors/github_dark.vim b/colors/github_dark.vim index 62497f8f..eef454ec 100644 --- a/colors/github_dark.vim +++ b/colors/github_dark.vim @@ -1,5 +1,5 @@ lua << EOF --- require("github-theme.config").set_theme('github_dark') +require("github-theme.config").set_theme('github_dark') require("github-theme").load() EOF diff --git a/lua/github-theme/init.lua b/lua/github-theme/init.lua index 4c828d20..bc7bc7ec 100644 --- a/lua/github-theme/init.lua +++ b/lua/github-theme/init.lua @@ -62,6 +62,7 @@ end M.setup = function(opts) did_setup = true + opts = opts or {} -- TODO: Remove this condition when migration -- from old config to 'opts.options' has been DONE.