question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Identify Neovim inside VSCode

See original GitHub issue

Would be nice to be possible to identify that the neovim instance is being used inside VSCode, so we can load plugins by demand.

Did try this config, but didn’t work as expected:

if has('g:vscode_channel')
   let g:editor = 'vscode'
   ...
if g:editor !=# 'vscode'
    Plug 'https://github.com/nathanaelkane/vim-indent-guides'
endif

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
asvetliakovcommented, Dec 16, 2019

Once 0.0.40 released you can check with following:

if exists('g:vscode')
    " VSCode extension
else
    " ordinary neovim
endif
0reactions
justinmkcommented, Dec 9, 2019

-c runs after user config. See :help -c . Use --cmd

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode Neovim - Visual Studio Marketplace
Neovim is a fork of VIM to allow greater extensibility and integration. This extension uses a fully embedded Neovim instance, no more half- ......
Read more >
Why I chose vscode-neovim over VSCodeVim | In the Middle
Overall, I think vscode-neovim allows for an smoother adaptation from Vim to VSCode. It matches actual Vim behavior and has better performance.
Read more >
I've started using the vscode neovim plugin. It runs a headless ...
I've started using the vscode neovim plugin. It runs a headless neovim in the background so you get literally everything that both editors...
Read more >
[2022] How to use NeoVim with VScode | by KASATA - Medium
5) Set Neovim to be loaded in the VSCode configuration file ... Add the following code to the VSCode settings.json code. ... Note:...
Read more >
Full vscode neovim integration - Reddit
u/devpieron Its possible to identify that the nvim instance was started inside vscode? I have the follow setup to identify the editor and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found