oberblastmeister / neuron.nvim

Make neovim the best note taking application
MIT License
396 stars 34 forks source link

"can't find neuron executable" #41

Open zhenjieliang opened 2 years ago

zhenjieliang commented 2 years ago

run the command in neovim

:lua require 'neuron'.setup()

return the error "neuron is not executable".

But I had installed the neuron already and run command in bash "neuron -v" works.

arkottke commented 2 years ago

Do you have a space between require and '?

zhenjieliang commented 2 years ago

Do you have a space between require and '?

Thanks for attention. Yes, I do have a space between require and '

zhenjieliang commented 2 years ago

How can I add the neuron binary path to the neovim executable search paths?

lokesh-krishna commented 2 years ago

You just need to add it to your $PATH.

zhenjieliang commented 2 years ago

You just need to add it to your $PATH.

Thanks for reply! Did you mean add the neuron binary path in my ~/.zshrc and then source it?

Already done it

export PATH=/nix/store/42kyavaxgcmxisxap302fssyvyn39n66-neuron-1.9.35.3/bin:$PATH

but still the problem remains.

lokesh-krishna commented 2 years ago

Does echo $PATH show this location? As long as I had the binary in one of the locations, I could get it to work.

zhenjieliang commented 2 years ago

Does echo $PATH show this location? As long as I had the binary in one of the locations, I could get it to work.

Yes, I run the command in terminal, and the neuron binary path does show up. But still the problem remains.

AuLaSW commented 2 years ago

Has anybody found a solution to this? I've been experiencing the same problem and cannot get it to work.