Replies: 1 comment 1 reply
-
I think this is (at the root) the same discussion as #3030. There's probably some info that you will find helpful about what and how files are sourced there |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'd like to be able to open files with Neovim inside Ghostty in the "Open with" menu in Macos.
I've created an Automator app which uses "Run shell script" in
zsh
:There are a couple of issues though...
Ghostty still in Dock
When I close Neovim, the Ghostty window disappears but it leaves a Ghostty instance in the Dock. Any advice on how I can get the Ghostty instance to also clean up once the Neovim process quits?
I did try
open -na Ghostty --args --quit-after-last-window-closed=true --shell-integration=detect -e /opt/homebrew/bin/nvim "$1"
but that doesn't seem to have any affect.Neovim LSPs
Neovim is complaining it can't load an LSP for the file I've opened. I think this may be related to the path (or the shell initialisation process that isn't happening maybe) so I don't know if this is necessarily a Ghostty thing or not but, is there any advice on how to get the zsh in Ghostty opened with "open -na Ghossty" to be as fully initialised as if it were opened normally?
I've tried adding
source ~/.zshrc
to the script before Ghostty is opened and although the PATH is "fuller" it still doesn't appear to be enough to make Neovim happy; I've not had chance to go down this rabbit hole any further yet.Beta Was this translation helpful? Give feedback.
All reactions