distant.nvim
distant.nvim copied to clipboard
Installation failed: Missing quote: ':lua require()
I'm trying to install the plugin. After inserting this code in vim config:
Plug 'chipsenkbeil/distant.nvim', {
\ 'branch': 'v0.3',
\ 'do': ':lua require("distant"):setup()'
\ }
I get an error when I run vim:
Error detected while processing /Users/unnamed777/.config/nvim/init.vim:
line 67:
E115: Missing quote: ':lua require()
E116: Invalid arguments for function plug#
Press ENTER or type command to continue
If I replace " with '' (':lua require(''distant''):setup()'), the error disappers and :PlugInstall seems to install the plugin successfully. But after I restart vim there is no :Distant* commands.
nvim: 0.9.1 LuaJIT 2.1.0-beta3 vim-plug: 0.13.0 (latest)
As a workaround, I removed the do part:
Plug 'chipsenkbeil/distant.nvim' , {'branch': 'v0.3'}
And added it on my lua config, for example at the end of my init.vim file:
lua << EOF
-- Distant
require("distant"):setup()
EOF