Code Monkey home page Code Monkey logo

Comments (3)

strager avatar strager commented on July 30, 2024

The reason that LazyVim is quitting on start is that lazy.nvim is running quick-lint-js's test suite. (The test suite script exits when tests pass.)

Why does lazy.nvim run the test suite? Because lazy.nvim isn't respecting the rtp setting (which doesn't seem to exist; lazy.nvim always adds the whole Git repo to runtimepath) and because lazy.nvim recursively executes .vim files in quick-lint-js's plugin directory.

lazy.nvim's config hook runs after executing the .vim files, so we can't stop this behavior using a config hook. The cond hook does happen early enough, though, so we can exploit it to get lazy.nvim to not totally explode:

return {
  "quick-lint/quick-lint-js",
  tag = "3.1.0",
  cond = function(plugin)
    -- TODO(strager): Don't make this happen multiple times.
    plugin.dir = plugin.dir .. "/plugin/vim/quick-lint-js.vim"
    return true
  end
}

But this doesn't make quick-lint-js work yet. More investigation is needed.

from quick-lint-js.

strager avatar strager commented on July 30, 2024

Here's a partially-working config for LazyVim:

return {
  "quick-lint/quick-lint-js",
  tag = "3.1.0",
  cond = function(plugin)
    -- TODO(strager): Don't make this happen multiple times.
    plugin.dir = plugin.dir .. "/plugin/vim/quick-lint-js.vim"
    return true
  end,
  config = function(_plugin)
    require("lspconfig/quick_lint_js").setup {}
  end,
}

from quick-lint-js.

strager avatar strager commented on July 30, 2024

I filed an issue with lazy.nvim. folke/lazy.nvim#1319

from quick-lint-js.

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.