From 5039c232472c5f967447f362e8c077cd09515482 Mon Sep 17 00:00:00 2001 From: Mike Iversen Date: Fri, 30 Aug 2024 00:09:58 -0500 Subject: [PATCH] Fixed formatting --- lua/persisted/init.lua | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/lua/persisted/init.lua b/lua/persisted/init.lua index 1c48120..6493be1 100644 --- a/lua/persisted/init.lua +++ b/lua/persisted/init.lua @@ -193,18 +193,8 @@ function M.allowed_dir(opts) opts = opts or {} local dir = opts.dir or vim.fn.getcwd() - return - ( - next(config.allowed_dirs) - and utils.dirs_match(dir, config.allowed_dirs) - or true - ) - and not - ( - next(config.ignored_dirs) - and utils.dirs_match(dir, config.ignored_dirs) - or false - ) + return (next(config.allowed_dirs) and utils.dirs_match(dir, config.allowed_dirs) or true) + and not (next(config.ignored_dirs) and utils.dirs_match(dir, config.ignored_dirs) or false) end ---Get an ordered list of sessions, sorted by modified time