nvim_context_vt icon indicating copy to clipboard operation
nvim_context_vt copied to clipboard

Error when using setup({...})

Open andis-sprinkis opened this issue 3 years ago • 6 comments

I'm using packer.nvim as package manager and in

require('packer').startup(function(use)
  use {
...

call setup() from respective plugin config parameter

...
    {
      'haringsrob/nvim_context_vt',
      config = function ()
        require("nvim_context_vt").setup({
          prefix = ' In:',
        })
      end
    },
...

That results in nvim startup error: p6R8uk3nj9

Plugin works fine when I don't call setup().

OS: Arch Linux

$ nvim --version                                                                                                                                     15:30:46
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

andis-sprinkis avatar Apr 17 '22 12:04 andis-sprinkis

I tried to reproduce this by copy-pasting the above, but without any success :thinking:

Could you maybe try to create a minimal working config where this issue occurs and share it ?

andersevenrud avatar Apr 17 '22 13:04 andersevenrud

OK, it stopped occurring after I removed and reinstalled impatient.nvim plugin and now setup() works, so there could have been some module caching issue related to that plugin which I'm not sure I'll be able to replicate. Will keep an eye on it.

andis-sprinkis avatar Apr 17 '22 13:04 andis-sprinkis

Ah! I've seen similar issues using impatient with other plugins that I maintain and never really found a way to solve it outside doing exactly what you did here.

Glad to hear it works now. Feel free to re-open this issue if you still have issues and I'll try to open a dialogue with the impatient maintainer.

andersevenrud avatar Apr 17 '22 13:04 andersevenrud

I updated plugins and got same issue, even after removing impatient.nvim, .local/share/nvim, packer /plugins and reinstalling all plugins from scratch, so I think it's something else than impatient.nvim pZm6RvlecA tbRchLrCgJ

I will try to do a minimal config example when I have time in upcoming days.

andis-sprinkis avatar Apr 18 '22 16:04 andis-sprinkis

Stopped occuring when I updated nvim from 0.6.1 to recently released 0.7.0, so probably backwards compat. issue in one of the other treesitter plugins.

andis-sprinkis avatar Apr 21 '22 15:04 andis-sprinkis

Happened today again on nvim startup after I installed my nvim config on a new Arch Linux host with nvim 0.7.0 (cloning config repo into .config/nvim and letting packer bootstrap routine and PackerSync run) . After running PackerCompile and LuaCacheClear a couple times the error stopped from occurring on nvim startup.

andis-sprinkis avatar May 15 '22 11:05 andis-sprinkis