distant.nvim icon indicating copy to clipboard operation
distant.nvim copied to clipboard

Installation failed: Missing quote: ':lua require()

Open unnamed777 opened this issue 1 year ago • 1 comments

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)

unnamed777 avatar Mar 19 '24 04:03 unnamed777

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

JuanG970 avatar Apr 25 '24 05:04 JuanG970