-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Unreliable with non-standard shell #18
Comments
Hi! The refactoring of
I'm not sure about this one, since the plugin relies on |
My only concern is that |
I noticed, that the help file for
That means, changing |
Yes. The only shell pipe we're using is in WSL
which I think should be able to be moved into lua native code in auto-dark-mode.nvim/lua/auto-dark-mode/init.lua Lines 24 to 39 in 76e8d40
|
`query_command` is now of type `table` so that `vim.fn.jobstart` does not use `shell`.
Sorry, I got held up on further reviewing the PR, I'll try to have another look on the weekend. 😅 |
I like to use a non-standard shell for
vim.opt.shell
(Nushell). It happens to work on Linux, but does not on Windows (Nushell is cross-platform).I think the issue is that
query_command
ininit.lua
is a shell script, that assumes the default shells per platform.I would like to refactor the code to:
query_command
to a table, that always represents one command + arguments (no shell features allowed, e.g. pipes)vim.fn.jobstart
tovim.system
, which is not dependent on the shell option in Neovim.Thoughts?
The text was updated successfully, but these errors were encountered: