From 31ac6425b3d3e5ce8c496db535112e901c57149f Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 18 Oct 2023 16:02:42 +0200 Subject: fix(hm/pkgs/scr/neorg): Cd with nvim to the project dir The cwd of neovim is relevant for extensions like the telescope link finder. If we access the file directly, these lose their ability to show project wide links --- hm/soispha/pkgs/scripts/wrappers/neorg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hm/soispha/pkgs/scripts/wrappers/neorg b/hm/soispha/pkgs/scripts/wrappers/neorg index 142924ef..6a36a6d6 100755 --- a/hm/soispha/pkgs/scripts/wrappers/neorg +++ b/hm/soispha/pkgs/scripts/wrappers/neorg @@ -46,7 +46,7 @@ open_current_task_context() { fi # Perform shell expansion of Tilde - nvim "$(sed "s|~|$HOME|" "$(ptmp "%DEFAULT_NEORG_PROJECT_DIR/$context_path")")"; + nvim +cd "%DEFAULT_NEORG_PROJECT_DIR" "$(sed "s|~|$HOME|" "$(ptmp "%DEFAULT_NEORG_PROJECT_DIR/$context_path")")"; else dbg "No context active"; open_neorg_workspace_prompt; -- cgit 1.4.1