The nvim configuration (init.vim) has a syntax error, but I don't know what's wrong.

Asked 2 years ago, Updated 2 years ago, 100 views

I think it's basic, but I can't erase the following error about init.vim in nvim.

letg: python3_host_prog=system('(type pyenv&>/dev/null&&echo-n"$(pyenv) 
root)/versions/$(pyenv global | grep python3)/bin/python")||echo-n$(which 
python3)')

What's wrong?
The error details are as follows.

 init.vim: line 2: unexpected token `('There is a syntax error around
init.vim:line 2:`letg:python3_host_prog=system('(type pyenv&>/dev/null&&&)         
echo-n "$(pyenv root)/versions/$(pyenv global | grep python3)/bin/python") 
|| echo-n$(which python3)')'

I would appreciate it if you could let me know.

bash vim neovim

2022-09-29 22:09

1 Answers

letg: python3_host_prog = system('(type pyenv&>/dev/null&&echo-n"$(pyenv
) root)/versions/$(pyenv global | grep python3)/bin/python")||echo-n$(which
python3)')

Is the above code one line?
If it's multiple lines, it's an error...


2022-09-29 22:09

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.