diff options
author | Soispha <soispha@vhack.eu> | 2023-10-18 16:02:42 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-10-18 16:02:42 +0200 |
commit | 31ac6425b3d3e5ce8c496db535112e901c57149f (patch) | |
tree | 500424b2af238aede4e425be2f3f614044f92f65 /hm | |
parent | fix(hm/pkgs/scrs/neorg): Add a fallback check for the neorg_path (diff) | |
download | nixos-config-31ac6425b3d3e5ce8c496db535112e901c57149f.tar.gz nixos-config-31ac6425b3d3e5ce8c496db535112e901c57149f.zip |
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
Diffstat (limited to '')
-rwxr-xr-x | hm/soispha/pkgs/scripts/wrappers/neorg | 2 |
1 files changed, 1 insertions, 1 deletions
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; |