Giter VIP home page Giter VIP logo

Comments (5)

mehalter avatar mehalter commented on June 2, 2024

Thmhis is how it used to be out of the box but left users very confused when the ensure_installed table that automatically installed debuggers didn't do anything. For now we don't have a real path forward for this without greatly decreasing the out of box experience. For this reason we made it load on opening a file and made it so the user has to opt into more aggressive lazy loading like you have

from astronvim.

mehalter avatar mehalter commented on June 2, 2024

Another option is to use the mason-tool-installer.nvim plugin for installing mason packages which is super great (this is what I use on my personal configuration) which also will move the lazy loading to being more aggressive for dap as the automatic installation is handled separately. It's available in AstroCommunity:

https://github.com/AstroNvim/astrocommunity/blob/main/lua%2Fastrocommunity%2Futility%2Fmason-tool-installer-nvim%2Finit.lua

I think I am leaning towards making this the default again. It was previously, but had a relatively slow startup time but I feel like that has improved.

I also think the way the spec is made in AstroCommunity could be considered a non-breaking change 🤔

from astronvim.

mehalter avatar mehalter commented on June 2, 2024

Ah actually, looking at this it looks like there is a part of the mason-tool-installer that does load the plugins for the mappings.... One sec that actually should probably be removed

Ah it is necessary to not be breaking because the installation mason plugins are required for some packages mappings

from astronvim.

mehalter avatar mehalter commented on June 2, 2024

@RayJameson So I got a new feature PR merged into mason-tool-installer to improve this (WhoIsSethDaniel/mason-tool-installer.nvim#49)

I will plan on making this a default in AstroNvim v5 with the integrations disabled by default.

In the meantime I would recommend the following adding the following to your community.lua file:

  { import = "astrocommunity.utility.mason-tool-installer" },

In AstroCommunity we are now disabling the other mason plugin integrations by default to default improve lazy loading which tends to be a main reason for using this plugin anyway. Then users can opt into the integrations that they way.

from astronvim.

RayJameson avatar RayJameson commented on June 2, 2024

Nice! I'll stick to my workaround for now, but eventually, I'll move to the community plugin

from astronvim.

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.