Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect vim.o.shell #100

Open
adigitoleo opened this issue Feb 5, 2024 · 3 comments
Open

Respect vim.o.shell #100

adigitoleo opened this issue Feb 5, 2024 · 3 comments

Comments

@adigitoleo
Copy link

Currently, this plugin always uses vim.env.SHELL as the default command. This behaviour is inconsistent with :terminal, which uses vim.o.shell. Using the latter value allows for more flexibility, since users can set the shell that they want neovim to use independently of the $SHELL used outside of nvim.

For example, on a shared system, I have $SHELL set to /bin/bash, but prefer to use $HOME/.local/bin/zsh for vim.o.shell.

Would it be reasonable to switch to using vim.o.shell by default?

@Vinni-Cedraz
Copy link

if I could at least make the default shell work I'd be happy. Currently it opens a window without anything not even a shell

@adigitoleo
Copy link
Author

@Vinni-Cedraz If you are on NeoVim, I have since created my own plugin to handle floating terminals: haunt.nvim. It won't help for vim8 though, as it is written in lua.

@adigitoleo
Copy link
Author

I have pushed a v2 of haunt.nvim which fixes a lot of things. But requires neovim 0.10. Will write a quick blog post about it with a video demo soon, and push a patch to try to restore support for 0.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants