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.

Allow setting stdpath's to avoid collision with terminal neovim

See original GitHub issue

Hello!

It seems a lot of neovim plugins expect the UI to be a dedicated UI for neovim itself, and not an integration into another editor platform. Because of this, there seems to be some collisions of functionality with things such as session management, for example.

I’ve attempted doing a bit of a hacky work around in my init.lua that I found from this post. It’s a fine idea, but doesn’t seem to be working completely in practice? When I echo stdpath("data") it returns the original path, however, doing lua print(vim.fn.stdpath("data")) works as desired.

I can see this is not functioning on the level I need it to as I still get messages from plugins like vim-go, thus it appears it’s still using ~/.local/share/nvim for the data directory.

Is this within the scope of this plugin? I’m not sure how else to go about doing this, but I’d like to maintain separation between the two instances.

Thanks for the plugin!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
justinmkcommented, Sep 11, 2022

I created this issue mainly to see if we can separate the two so I don’t have to really screw with my nvim config

To solve this issue you need to screw with some config, either in vscode or Nvim. You can set ‘packpath’ and ‘runtimepath’ in a exists('g:vscode') condition, and that’s that. There is no reason for vscode-neovim to add another mechanism to do this.

1reaction
theol0403commented, Sep 9, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Options - Neovim docs
This command is used in a filetype.vim file to avoid setting the 'filetype' option twice, causing different settings and syntax files to be...
Read more >
Running Vim in Neovim's terminal load Nvim #9960 - GitHub
This is simply due to the fact that $VIMRUNTIME is set to Neovim's runtime. Unset it before running vim in :terminal . :te...
Read more >
How to have a Neovim configuration compatible with Vim
This will run on restricted servers that only allow to copy configuration files. Minimise dependencies but keep it fast (Lua plug-ins > Vim ......
Read more >
My ever growing neovim init.lua - DEV Community ‍ ‍
lua I started to gradually annotating and copying pieces of others [neo]vimmers to reproduce my old environment. The full configuration resides ...
Read more >
How to set up Neovim 0.5 + Modern plugins (LSP, Treesitter ...
And use it on your terminal app. For example, on iTerm2: My color theme is NeoSolarized, which is a true color ...
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