auto-dark-mode.nvim
auto-dark-mode.nvim copied to clipboard
making `query_command` shell-agnostic
fixes #18
query_command
is now of type table
so that vim.fn.jobstart
does
not use shell
.
Tested on Windows 11 with nushell. Needs testing in:
- linux
- linux + sudo
- macos
- WSL
The code in parse_query_response
now needs to handle a table, instead of a string, because the query_command
cannot use pipes any more, which previously guaranteed that stdout consisted of one line.
Hey @nekowinston! Does your commit fix the issues with the PR? Feel free to merge this if it works for you or close it otherwise :)
It doesn't, my commit so far was a simple syntax error fix, the whole PR doesn't work for me in its current state. I meant to get back to this, but I currently don't have much time for FOSS work... 😓
No worries, do as you wish whenever you wish with this one :)
I have tested this branch on Windows, WSL and Fedora 40 and those work. Unfortunately, I have no NixOs system to test on.