From 29f108b5c484f01fcbd7bb8234af035da6971607 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Sun, 22 Oct 2023 13:05:32 -0500 Subject: refactor: clean up functions --- lua/inbox/config.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lua/inbox/config.lua') diff --git a/lua/inbox/config.lua b/lua/inbox/config.lua index 2f7f47d..9e62353 100644 --- a/lua/inbox/config.lua +++ b/lua/inbox/config.lua @@ -1,8 +1,11 @@ -local utils = require("inbox.utils") +local Path = require("plenary.path") ---@type inbox.Config local default_config = { - indexer_config = "notmuch", + indexer = "notmuch", + indexer_config = { + database_dir = Path:new(vim.env.XDG_DATA_HOME, "mail").filename, + }, buf_options = {}, win_options = { wrap = false, @@ -84,8 +87,6 @@ function M.setup(opts) for k, v in pairs(config) do if k == "filters" then M[k] = M.parse_filters(v) - elseif k == "indexer" then - M[k] = M.try_resolve(v, k) else M[k] = v end -- cgit v1.2.3-70-g09d2