chipsenkbeil / distant.nvim

🚧 (Alpha stage software) Edit files, run programs, and work with LSP on a remote machine from the comfort of your local environment 🚧
https://distant.dev
Apache License 2.0
1.2k stars 12 forks source link

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

Open unnamed777 opened 7 months ago

unnamed777 commented 7 months ago

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 commented 6 months ago

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