From ddd63b5301aa0d11c140ab99ba22d0a33a69a9a4 Mon Sep 17 00:00:00 2001 From: benlubas Date: Thu, 4 Apr 2024 13:30:04 -0400 Subject: [PATCH] fix: call tostring on workspace paths --- lua/telescope/_extensions/neorg/backlinks/file_backlinks.lua | 2 +- lua/telescope/_extensions/neorg/backlinks/header_backlinks.lua | 2 +- lua/telescope/_extensions/neorg/find_linkable.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/telescope/_extensions/neorg/backlinks/file_backlinks.lua b/lua/telescope/_extensions/neorg/backlinks/file_backlinks.lua index 77e5a4b..b87238b 100644 --- a/lua/telescope/_extensions/neorg/backlinks/file_backlinks.lua +++ b/lua/telescope/_extensions/neorg/backlinks/file_backlinks.lua @@ -13,7 +13,7 @@ return function() require("telescope.builtin").grep_string({ search = common.build_backlink_regex(current_workspace, current_file), use_regex = true, - search_dirs = { current_workspace }, + search_dirs = { tostring(current_workspace) }, prompt_title = "File Backlinks", }) end diff --git a/lua/telescope/_extensions/neorg/backlinks/header_backlinks.lua b/lua/telescope/_extensions/neorg/backlinks/header_backlinks.lua index 9159579..e6ee1d4 100644 --- a/lua/telescope/_extensions/neorg/backlinks/header_backlinks.lua +++ b/lua/telescope/_extensions/neorg/backlinks/header_backlinks.lua @@ -32,7 +32,7 @@ return function() require("telescope.builtin").grep_string({ search = common.build_backlink_regex(current_workspace, current_file, heading), use_regex = true, - search_dirs = { current_workspace }, + search_dirs = { tostring(current_workspace) }, prompt_title = "Header Backlinks (" .. heading .. ")", }) end diff --git a/lua/telescope/_extensions/neorg/find_linkable.lua b/lua/telescope/_extensions/neorg/find_linkable.lua index 92e0d18..a2686cf 100644 --- a/lua/telescope/_extensions/neorg/find_linkable.lua +++ b/lua/telescope/_extensions/neorg/find_linkable.lua @@ -12,7 +12,7 @@ return function(opts) require("telescope.builtin").grep_string({ search = "^\\s*(\\*+|\\|{1,2}|\\${1,2})\\s+", use_regex = true, - search_dirs = { current_workspace }, + search_dirs = { tostring(current_workspace) }, prompt_title = "Find in Norg files", }) end