Giter Site home page Giter Site logo

Comments (7)

wizard-28 avatar wizard-28 commented on July 18, 2024

I just found out this happens when doing any vim-ultest configuration in the setup function.

from vim-ultest.

rcarriga avatar rcarriga commented on July 18, 2024

This is because when you use a setup function paq will load the plugin after startup which means that when you :UpdateRemotePlugins, the functions are not detected. There's not much I can do about this, it is a side effect of how remote plugins work in neovim. The best workaround is to move your setup to your init.vim or somewhere else and have vim-ultest load on startup

from vim-ultest.

wizard-28 avatar wizard-28 commented on July 18, 2024

Okay, I'll try it today.

from vim-ultest.

akinsho avatar akinsho commented on July 18, 2024

Hi,

So I'm encountering the same issue using packer.nvim but I don't use a setup option for ultest in this case.

    use {
      'rcarriga/vim-ultest',
      requires = { 'vim-test' },
      run = ':UpdateRemotePlugins',
      config = function()
        as.augroup('UltestTests', {
          {
            event = { 'BufWritePost' },
            pattern = { '*_test.*', '*_spec.*' },
            command = 'UltestNearest',
          },
        })
        as.nmap(']t', '<Plug>(ultest-next-fail)', {
          label = 'ultest: next failure',
          buffer = 0,
        })
        as.nmap('[t', '<Plug>(ultest-prev-fail)', {
          label = 'ultest: previous failure',
          buffer = 0,
        })
      end,
    }

from vim-ultest.

rcarriga avatar rcarriga commented on July 18, 2024

Can you verify that vim-ultest is in the start directory and not the opt directory of packer's pack?

from vim-ultest.

akinsho avatar akinsho commented on July 18, 2024

@rcarriga so I thought it might be that, but it is definitely in the start directory and still giving this error.

Screen Shot 2022-04-28 at 13 08 09

I think I just managed to fix it by setting vim-test to not be conditionally loaded, I was previously loading it on demand, but seems that was what was causing this issue.

from vim-ultest.

rcarriga avatar rcarriga commented on July 18, 2024

Ah yes that'd be it, vim-ultest assumes vim-test is available on load as it needs to call it on startup

from vim-ultest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.