Git Product home page Git Product logo

Comments (7)

dpetka2001 avatar dpetka2001 commented on June 29, 2024

Yes, and that's not a bug. You should learn some Lua to customize your configuration to your needs. You need to remove the corresponding Lualine component that you don't want. Both of the plugins trouble and navic provide their own Lualine component.

PS: Just remembered that there's an option that you can set in your /lua/config/options.lua to disable trouble Lualine component as you can see here when you have other Extras with similar functionality enabled.

from lazyvim.

leisurelicht avatar leisurelicht commented on June 29, 2024

Yes, and that's not a bug. You should learn some Lua to customize your configuration to your needs. You need to remove the corresponding Lualine component that you don't want. Both of the plugins trouble and navic provide their own Lualine component.

PS: Just remembered that there's an option that you can set in your /lua/config/options.lua to disable trouble Lualine component as you can see here when you have other Extras with similar functionality enabled.

OK,at first, I really didn't notice that there has an trouble option, that's my fault.

But did you really think this should require manual settings by the user? not automatically?

When I enable navic by lazy Extras,that means I want to use it,right? And Lazy Extras was created for let user can quickly enable/disable a new extra without modifying the configuration file, right?

So If I have to modify the configuration file anyway, then why do I still need to use Lazy Extras to manage the extra plugin? why don't I just import navic directly in the configuration file?

PS. I know how to write configurations in Lua, so I suggest you mind your own business and try to learn how to accept different opinions.

from lazyvim.

dpetka2001 avatar dpetka2001 commented on June 29, 2024

@leisurelicht I sincerely apologize because I jumped the gun. I regret what I said and that's why I submitted the PR to take into consideration what you suggested, that the user shouldn't be seeing 2 Lualine components for symbols.

from lazyvim.

leisurelicht avatar leisurelicht commented on June 29, 2024

@dpetka2001 OK, maybe I also got a bit worked up.

I have seen your pr。 No offense intended。I don't think it's a best solution. Just like I said above, when user enable navic or aerial by Lazy extras, they still need to modify configuration file and set vim.g.trouble_lualine. If user forget to set vim.g.trouble_lualine = false after enable navic or aerial by Lazy Extras. they will never show。Users might not even realize that the current content displayed in lualine does not come from the extra plugins they added。This may go against the original intention of LazyExtra.

So I thought the best way is if user enable navic or aerial, disable the trouble lualine component. Not first check thetroubel_lualine, if it's true, then doesn't load extra lualine component.

Since I still use configuration file to manage extra except language plugins. trouble_lualine has been enough to solve my problem. So it just a suggestion.

Finally, thank you for the effort you've made to this project.

from lazyvim.

folke avatar folke commented on June 29, 2024

The way it works right now is how it should work. Enabling outline or aerial should NOT replace the default symbols in lualine. Only if the user disables the trouble lualine it should do that.

PS. I know how to write configurations in Lua, so I suggest you mind your own business and try to learn how to accept different opinions.

And I really won't allow this type of language in the LazyVim community. You have been warned.

from lazyvim.

dpetka2001 avatar dpetka2001 commented on June 29, 2024

@folke It was my fault to begin with. I wasn't in the right frame of mind when I first replied to OP (it had nothing to do with the OP, it was just personal factors). I should have waited and given a proper response at a later time.

@leisurelicht is not at fault here. He just responded based on my wrong behavior of my first reply. If you want to give someone a warning please give it to me. I will gladly accept it and strive to do better in the future. I'm really sorry you have to deal with such situations when you give your best effort to keep so many users happy with all of your work. Again, I apologize both to you and @leisurelicht.

@leisurelicht I had prepared a PR to do what you suggested, but after seeing the maintainer's response as to what the preferred behavior of the plugins should be, I won't submit it.

from lazyvim.

leisurelicht avatar leisurelicht commented on June 29, 2024

@dpetka2001 Never mind, It is just a suggestion。

@folke Seriously? Fine,好きにしよう。

from lazyvim.

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.