From a9d1d6e2ce65caf1348f3cbac8d530030f976136 Mon Sep 17 00:00:00 2001 From: olimorris Date: Wed, 11 Sep 2024 17:35:14 +0100 Subject: [PATCH] docs: update README.md --- README.md | 4 +++- doc/persisted.nvim.txt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ffa2e8..3a26237 100644 --- a/README.md +++ b/README.md @@ -449,11 +449,13 @@ If you'd like to ignore certain branches from being saved as a session: local utils = require("persisted.utils") local ignored_branches = { "feature_branch" + "bug_fix_branch" } persisted.setup(opts) + + -- Only start the plugin if the branch isn't in the ignored list if not utils.in_table(persisted.branch(), ignored_branches) then - persisted.load() persisted.start() end end diff --git a/doc/persisted.nvim.txt b/doc/persisted.nvim.txt index a35b584..673399b 100644 --- a/doc/persisted.nvim.txt +++ b/doc/persisted.nvim.txt @@ -473,11 +473,13 @@ If you’d like to ignore certain branches from being saved as a session: local utils = require("persisted.utils") local ignored_branches = { "feature_branch" + "bug_fix_branch" } persisted.setup(opts) + + -- Only start the plugin if the branch isn't in the ignored list if not utils.in_table(persisted.branch(), ignored_branches) then - persisted.load() persisted.start() end end