Giter Site home page Giter Site logo

Comments (14)

seagle0128 avatar seagle0128 commented on May 17, 2024

I don't like displaying minor modes personally. The mode-line looks too long and complicated.
Since someone like it, I implement a simple segment but disable it by default.

from doom-modeline.

seagle0128 avatar seagle0128 commented on May 17, 2024

(setq doom-modeline-minor-modes t) to enable.

from doom-modeline.

Havner avatar Havner commented on May 17, 2024

Thanks!

Works almost great :-)

I've found you disable projectile-dynamic-mode-line in doom modeline. What for? It shouldn't make any difference when minor modes are not visible, but it does make a difference when they are shown.

You commented that it disables "projectile mode-line segment". I don't think that's a segment, it's just a lighter.

EDIT: also mouse clicks are completely broken. Not that I really care/use them, but you might want to know :-) It takes full string of the surroundings:

minor-mode-menu-from-indicator: Cannot find minor mode for ‘10:56  Parinfer:Indent P  LF  UTF-8  Lisp Interaction   - ’ [4 times]
describe-minor-mode-from-indicator: Cannot find minor mode for ‘10:56  Parinfer:Indent P  LF  UTF-8  Lisp Interaction   - ’ [8 times]

from doom-modeline.

Havner avatar Havner commented on May 17, 2024

Also if possible would you be so kind to create a customizable face for it? The same way one exists e.g. for major mode (doom-modeline-buffer-major-mode).

from doom-modeline.

seagle0128 avatar seagle0128 commented on May 17, 2024

You commented that it disables "projectile mode-line segment". I don't think that's a segment, it's just a lighter.

You are right! It's a lighter. Because all minor-modes are disabled in doom-modeline before, I disabled it as well, but not necessary now. I will remove it.

also mouse clicks are completely broken.

I am investigating this minor issue.

if possible would you be so kind to create a customizable face for it?

Since they are minor modes, I just keep them as default face, which keeps mode-line clean and simple. I don't want to make too many colors from doom-themes. Do you have any idea for the minor modes?

from doom-modeline.

Havner avatar Havner commented on May 17, 2024

Since they are minor modes, I just keep them as default face, which keeps mode-line clean and simple. I don't want to make too many colors from doom-themes. Do you have any idea for the minor modes?

You can create the face and make it inherit from the default face and not touch doom-themes at all, I don't mind. But this way I'll be able to customize it myself.

from doom-modeline.

seagle0128 avatar seagle0128 commented on May 17, 2024

@Havner Okay. I know what you mean exactly. Will drop in soon.

from doom-modeline.

Havner avatar Havner commented on May 17, 2024

Cheers!

Works great now.

from doom-modeline.

Havner avatar Havner commented on May 17, 2024

One question though, partly related. Today I've noticed that LSP has it's own segment, or something generic, that's showing LSP. Together with minor mode segment I see it twice. This is not a bug in minor mode segment but I'd like to know how to identify the other one displaying it.

doom-modeline

EDIT: Forget it, (doom-modeline-def-segment lsp, couldn't be clearer. I suppose there is no generic way to enable/disable segments other then adding a config option for each of them?

EDIT2: and the reason I noticed it just today is because it's the most recent addition ;-)
Probably the most optimal solution would be to introduce enablers (and maybe custom faces) for all segments so people can choose and configure whatever they want ;-)

EDIT3:
(defun doom-modeline-segment--lsp ())
Did the job for now.

from doom-modeline.

seagle0128 avatar seagle0128 commented on May 17, 2024

lsp-mode provides the lighter in the minor mode. lsp segment leverage the same lighter because of the compatibility with two different co-existing interfaces (lsp-mode.el and lsp.el). I discussed with the maintainers of lsp-mode. We will continue improving it with the new APIs after the legacy codes are deleted. I think you can just remove lsp lighter from the minor modes segment.

Well, today I don't provide all enablers for each segment. Only for minor-modes. I may add others but no promise for all segments.

from doom-modeline.

Havner avatar Havner commented on May 17, 2024

I think you can just remove lsp lighter from the minor modes segment.

There doesn't seem to be any provided means to do this. It was easier to disable doom line segment for me.

from doom-modeline.

seagle0128 avatar seagle0128 commented on May 17, 2024

diminish or delight is easy to remove lighters on mode-line. Or just redefine lsp-mode-line. It's up to you, anyway. Cheers!

from doom-modeline.

Havner avatar Havner commented on May 17, 2024

I use delight, but LSP mode line is dynamic. Delight won't help here. And there is no lsp-mode-line variable defined in newest LSP.

EDIT: Ok, surprisingly delight actually worked.

from doom-modeline.

seagle0128 avatar seagle0128 commented on May 17, 2024

Seems diminish does work. Redefining lsp-mode-line function or overriding it with ignore also does work...

from doom-modeline.

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.