numToStr / FTerm.nvim

:fire: No-nonsense floating terminal plugin for neovim :fire:
MIT License
721 stars 24 forks source link

Respect vim.o.shell #100

Open adigitoleo opened 5 months ago

adigitoleo commented 5 months ago

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 commented 1 month ago

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 commented 1 month ago

@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.