simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 158 forks source link

Change command chain operator for nushell #277

Closed simonboots closed 1 year ago

simonboots commented 1 year ago

When using nushell, chaining command with && does not work as it is not a supported operator. The replacement for && in nushell is ;, see Coming from Bash.

This PR adds a check if the current shell (as defined by the environment variable $SHELL) is nu. If that's the case, we use ; as the command chaining operator.

I am not a lua programmer so this is a best effort fix. Please let me know if I can improve anything.