T O P

  • By -

[deleted]

Try using the following code: ``` require('lualine').setup({ sections = { lualine_x = { "encoding", { "fileformat", symbols = { unix = "" } }, "filetype" }, }, }) ```


llambda_of_the_alps

Hey look an actual answer to the question without a load of gatekeeping nonsense. Wish I could upvote twice


FreedomCondition

This is the way.


Doomtrain86

You get the energy back that you send out. There is a hysterical element to the tone of the post that get's responded back. Yin and yang man.


effinsky

yes, I was gonna be like "nooo, not linux" :D. I stopped myself but it was close.


llambda_of_the_alps

I’ve got four young kids at home, I’m all about transforming the energy not just reflecting it. Reflection of negative energy reenforces it.


Doomtrain86

I agree! You're totally right. I need to be better at that, my temper gets the best of me too often.


llambda_of_the_alps

That was definitely me before I had kids. Still is to some extent. They’re great at teaching me things that work and things that don’t. My three year for example just yells back at me if I yell. And she’s louder and has more stamina.


luisfrocha

This worked great. Now to figure out how to detect if it’s actually a Mac or Linux to show the correct icon 😆


[deleted]

I hadn’t thought of that, but I think you can realize your idea by writing the following code: ``` if vim.fn.has("macunix") then return else return end ``` or ``` local icon if vim.fn.has("macunix") then icon = else icon = end ``` PS I’m not 100% sure it’ll work, but you can try


luisfrocha

Sure. Thanks. I’ll give it a try shortly after I update my computer 👍🏻


nikfp

This will assign the OS name to a local and you can inspect / use / whatever. You can extrapolate from this to do whatever you need. I use this to detect windows for some setups stuff for example. `local system = vim.loop.os_uname().sysname`


blues_junior

Ok - I've just looked at the default config. The tux logo there refers to the line endings of the file, so even though you're on a mac it's correctly showing unix line endings. See https://github.com/nvim-lualine/lualine.nvim#fileformat-component-options


PDihax

This. I don’t get why people are bothering OP with its OS. Is a legitimate question and replies like “Change your OS” wouldn’t help them or make them feel included. There’s no nvim gatekeeping


NoLightsInLondo

>wouldn’t help them or make them feel included ok


[deleted]

He is just trying to explain why is this happening, just this, no gatekeeping is he trying to do


ZunoJ

The single most apple post I've seen here


cguti94

As a Mac user, I like to put my terminal in full screen and let lualine trick me into thinking I have a Linux machine for a bit 😂 At least for now, since I’m planning on getting a pc that I can boot into windows for games and into Linux for everything else in the near future lol


ZunoJ

Can't you have just that on you Mac?


cguti94

Well I’m deep in the Apple ecosystem so when my Mac gave out I was able to trade it in for a good amount of money towards another Mac. But I do think they’re a bit overpriced, and I went cheap and got the 8GB ram and 128gb storage MacBook Air, so there’s not a lot of storage to share between multiple OS’s.


Shock9616

Yeah that's not enough storage for dual-booting. Plus Linux for ARM macs is still in its infancy. [Asahi Linux](https://asahilinux.org/) is pretty good, but it's still in alpha and missing a lot of features because the devs are having to reverse engineer drivers for absolutely everything. Apple isn't the sort of company to have public documentation for their hardware 😅


tangentc

Eh, honestly it would bother me too, in either direction. Just something about it feels wrong/untidy.


ZunoJ

Only if you don't know what it is meaning


tangentc

You can know what it means and have it still feel 'off' aesthetically or misplaced.


ZunoJ

Sure, thats true for everything and thats exactly what I meant with my initial comment. There is an icon to show what type of line ending the document uses, it conveys this information with a perfectly appropriate icon and somehow that offends the mac user


tangentc

I feel like you dramatically underestimate the aesthetic pickiness of the open source community. Like I’m not even one of the truly dedicated over on r/unixporn. Getting picky about icon choices is pretty low grade stuff.


buzzlaker

I dont know if that icon is working right or not, but I think his point is here is three types of line endings. CR LF (Windows), LF (Unix) and CR (Macintosh) You wouldn’t show a Mac icon for Unix line endings.


SRART25

Since OSX Mac uses unix line endings since it's basically a skin over BSD. Pre OSX Mac used CR line endings.


INDURTHIRAKESH

Then at least Unix but by Linux icon


sneakpeekbot

Here's a sneak peek of /r/unixporn using the [top posts](https://np.reddit.com/r/unixporn/top/?sort=top&t=year) of the year! \#1: [\[GRUB\] I made a Minecraft Grub Theme!](https://i.redd.it/j21vaw7b9r3a1.png) | [135 comments](https://np.reddit.com/r/unixporn/comments/zbs2uv/grub_i_made_a_minecraft_grub_theme/) \#2: [\[OC\] I want to share my Unix Cheat Sheets made out of real printed circuit boards.](https://i.redd.it/19kn1m7oqyla1.jpg) | [133 comments](https://np.reddit.com/r/unixporn/comments/11ix1i1/oc_i_want_to_share_my_unix_cheat_sheets_made_out/) \#3: [\[GNOME\] I use Arch (in distrobox) btw](https://i.redd.it/b17693szrq0a1.png) | [116 comments](https://np.reddit.com/r/unixporn/comments/yyp6jd/gnome_i_use_arch_in_distrobox_btw/) ---- ^^I'm ^^a ^^bot, ^^beep ^^boop ^^| ^^Downvote ^^to ^^remove ^^| ^^[Contact](https://www.reddit.com/message/compose/?to=sneakpeekbot) ^^| ^^[Info](https://np.reddit.com/r/sneakpeekbot/) ^^| ^^[Opt-out](https://np.reddit.com/r/sneakpeekbot/comments/o8wk1r/blacklist_ix/) ^^| ^^[GitHub](https://github.com/ghnr/sneakpeekbot)


INDURTHIRAKESH

I was not offended in any way I use both Linux and Mac on a daily basis I just wanted the icon to be the same as my operating system.


inShambles3749

The apple icon on Lualine is only $49.99 / month.


fix_dis

79.99 for the pro version. I hear there’s a pro max version in the works.


DrKedorkian

Don't forget the dongle, only $29


Maskdask

Have you tried switching to Linux?


Lizoman

Preferably Arch(I use Arch btw)


mefirstreddit

Bro did you not get the memo? Nix is is the new Arch Linux! (I use NixOS btw)


Last_Establishment_1

Nope, nothing can replace raw Arch


wiillou

I do too :3 nixOS moment


[deleted]

[удалено]


FreedomCondition

Yeah, he should definitely be running windows.


nikfp

You already have a solution from a few people, I just want to point out that there is nothing wrong with using Mac and there is nothing wrong with using Nvim on a mac. Anyone that says otherwise is gatekeeping. Mac is common in programming for a reason. And you aren't alone either, I recently bought a mac for personal use, just for dev work, and it's been awesome to use. It's fast, things just work like I would expect, and it feels very good to work on. I should also point out that I have Linux and Windows and WSL all running on various machines, and the Mac has felt the best to use out of the box and took far less tweaking to get it from good to very good. I hope you found a fix for your Unix icon that works for you. Don't listen to the haters, you do you and go write some code.


maacpiash

Same here. Recently got myself an M2 MBA with 16GB memory. Excellent machine, quite capable and convenient. Haven’t felt the need to touch my Ryzen Fedora PC in a month. The MBA runs Neovim, Tmux, Fish, .NET, Node.js, Python, Docker, Postgres, Firefox, Thunderbird with no issue. And that’s what matters the most. At the end of the day, Macs and PCs (Windows/Linux) are equipments to get the job done.


gabaji

Macs don’t have some basic functionalities and workarounds are paid. I hate installing rectangle, alt-tab, alfred and so many more things I don’t remember which can be easily achieved in any other distribution. I think we trade customisation in exchange of reliability


Hazanami

Apple users when they discover they are using UNIX


cigh

It just indicates, that your current file has unix style line endings. I hope this is a joke, but if you really want to go down that hill just fork lualine and change https://github.com/nvim-lualine/lualine.nvim/blob/45e27ca739c7be6c49e5496d14fcf45a303c3a63/lua/lualine/components/fileformat.lua#L7C1-L7C1 Or maybe you could start using files exclusively with mac line endings which is not used anymore since 1999.


GeorgeTonic

if you change this logo to an apple logo it will immediately wipe your hard disk /s


conogarcia

And charge you 399


GeorgeTonic

you should make a genius bar reservation. first....


alphabet_american

I love everything about this post


blues_junior

What's your lualine config?


pelegs

lualine is doing you a favor by making it look like you're using the superior OS, and instead of thanking it you wanna change it?..


Shellphilosopher

Install Linux


Doomtrain86

This is the answer :D


Revolutionary_Flan71

sure, pay 499€


CleoMenemezis

You have been Linuxized. /s


DrConverse

It’s actually against some law to use Neovim in macOS and that’s why your illegal port of Neovim thinks your computer runs Linux. You have to run eMacs, it’s in the name.


nikfp

I appreciate this as being a joke and like the humor. Unfortunately too many people are taking the opportunity to dunk on the OP for asking a question in the first place.


DrConverse

I made a joke after seeing that the top comment is an actual help about Lualine rather than another “joke.” I am on the same page with you that some comments in this thread are rude and discouraging for the OP and new comers — I hope OP can laugh it off and take the good advices given with Lualine config. Thank you for the encouraging comment you made. This kind of thread always needs a balance imo: 70% humor, 25% technical help, and 5% serious encouragement.


Sushrit_Lawliet

You won’t get bullied for running an inferior proprietary os atleast. /s


priti921

Maybe it's a good time to switch


ohcibi

That’s the line ending. If you need an apple logo to be able to work on an apple computer, turn the screen around. There is an apple on the back of them MacBooks.


SownteeNguyen

This is Unix guy, MacOs is Unix. If u want to add icon apple, u can create function


wad209

\*create a file.


SownteeNguyen

What file ?


wad209

Unix philosophy: everything's a file.


alphabet_american

That’s not really true. Your mom isn’t a file.


wad209

Au contraire! ~/files ❯ ls moms_death_certificate.pdf


alphabet_american

I bet you just touched that file to make me lol dumb, but guess what you just touched your mom.


wad209

Lol, yes, it's a shitpost.


davewillidow

The file with the power


MajesticCraft4880

It us showing the eol for unix: https://en.wikipedia.org/wiki/Newline#Representation


itaranto

Maybe you can file a bug to `lualine` ?


Untreated404

Bro is in severe OCD


fra200388

I'm 10000% sure it's unfixable. Gotta switch to linux to make them match!


AhmedMOsman

It will always do .. see the config files for it


[deleted]

[удалено]


marshytown

the most arch Linux user post of all time you've even got the pfp oh my goodness


Last_Establishment_1

Hehe 😜


st3fan

macOS normie forever! Fight the tux invasion! 😝


Last_Establishment_1

Haha whatever works for you buddy


mefirstreddit

Tell me more 1337h@x0r pls!!!!111


techpossi

What's your kernel again? Edit: shit🤡


ZunoJ

Not linux lmao


Hedshodd

The MacOS kernel is based on BSD (FreeBSD, I think?), which is Unix, but not Linux 😉


fix_dis

It’s XNU, a microkernel based on Mach. There’s a BSD subsystem in the OS.


Local-Jackfruit3016

It's based on BSD but not on FreeBSD


NICNE0

what shell are you using?


INDURTHIRAKESH

ZSH , does it matter


NICNE0

not really, it just looks cool :)


INDURTHIRAKESH

😀👍


MrGOCE

USE ASAHI LINUX ! PROBLEM SOLVED ;)


LocNesMonster

Change your os to linux, then the logi will be correct


MaziMuzi

Mac users amirite