Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
unnamed777 opened this issue Mar 19, 2024 · 1 comment
Open

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

unnamed777 opened this issue Mar 19, 2024 · 1 comment

Comments

@unnamed777
Copy link

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)

@JuanG970
Copy link

JuanG970 commented Apr 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants