diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-10-19 15:59:11 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-10-19 15:59:11 -0400 |
commit | 47a8f23f374f34a77c678aab0458f409da1e3341 (patch) | |
tree | 59d5e02e057849e318edc5d80f4ed30a3de98ce6 | |
parent | 1a44e9a1cd059eef2b45b37006b46c17d7316e04 (diff) | |
download | lite-xl-plugin-manager-47a8f23f374f34a77c678aab0458f409da1e3341.tar.gz lite-xl-plugin-manager-47a8f23f374f34a77c678aab0458f409da1e3341.zip |
Fixed some config stuff.
-rw-r--r-- | src/lpm.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index e0fff24..9ffc720 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1467,7 +1467,7 @@ function Bottle:construct() if not self.lite_xl:is_installed() then self.lite_xl:install() end common.mkdirp(self.local_path .. PATHSEP .. "user") if self.config then - common.write(self.local_path .. PATHSEP .. "user" .. PATHSEP .. "init.lua", DEFAULT_CONFIG_HEADER .. (MOD_VERSION == "any" and "config.skip_plugins_version = true" or "") .. self.config) + common.write(self.local_path .. PATHSEP .. "user" .. PATHSEP .. "init.lua", DEFAULT_CONFIG_HEADER .. (MOD_VERSION == "any" and "config.skip_plugins_version = true\n" or "") .. self.config) end -- Always copy the executbale, because of the way that lite determines the user folder (for now). @@ -1518,7 +1518,7 @@ function Bottle:apply(addons, config) end end if config then - common.write((self.is_system and USERDIR or self.local_path) .. PATHSEP .. "init.lua", config == 'default' and (DEFAULT_CONFIG_HEADER .. (MOD_VERSION == "any" and "config.skip_plugins_version = true" or "")) or config) + common.write((self.is_system and USERDIR or self.local_path) .. PATHSEP .. "init.lua", config == 'default' and (DEFAULT_CONFIG_HEADER .. (MOD_VERSION == "any" and "config.skip_plugins_version = true\n" or "")) or config) changes = true end return changes @@ -2470,6 +2470,7 @@ It has the following commands: else to run your configuration. lpm purge Completely purge all state for LPM. + lpm bottle purge Purges all bottles. lpm - Read these commands from stdin in an interactive print-eval loop. lpm help Displays this help text. |