Skip to content

Commit

Permalink
fix: call tostring on workspace paths
Browse files Browse the repository at this point in the history
  • Loading branch information
benlubas authored and vhyrro committed Apr 4, 2024
1 parent 2fb1177 commit ddd63b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lua/telescope/_extensions/neorg/find_linkable.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ddd63b5

Please sign in to comment.