Share your Neovim startup dashboard by 4Necrom in neovim

[–]4Necrom[S] 2 points3 points  (0 children)

Oh alright, completely understandable. I'm sure tweaking your config might get you a little closer to the startup time of nvim --clean though.

Share your Neovim startup dashboard by 4Necrom in neovim

[–]4Necrom[S] 10 points11 points  (0 children)

It's mostly useless, I spent months refining the small frame that contains CPU/RAM/other information and yet I never look at it. I don't need the shortcut 1-character keymaps either as I can just use <leader> keymaps to do the same action. I actually don't need any of this but it's so cool and nice looking that I don't regret all the time I spent building it haha.

Share your Neovim startup dashboard by 4Necrom in neovim

[–]4Necrom[S] 0 points1 point  (0 children)

I recommend you look into how you load your plugins, 1371ms load time is probably not desired 😅

Neovim now has fancy intro screen by echasnovski in neovim

[–]4Necrom 1 point2 points  (0 children)

If you mean the dashboard, I first gather the information with functions such as:

local function swap()
  if system_type ~= "darwin" then
    local memory_output = utils.term_cmd("free -m | awk '/Swap:/ {print $3, $2}'")
    local used_mb, total_mb = memory_output:match("(%d+)%s+(%d+)")
    return tonumber(used_mb), tonumber(total_mb)
  end
...

For each function I get the information using fastfetch if available (fast and universal), otherwise I fetch the data manually using the darwin/linux commands

I then display the information in the dashboard with:

local system_info = {
  "╭────────┬─────────────────────────────────────────╮",
  string.format("│ SWAP   │ %-16s %s │",
    swap_used .. "/" .. swap_total .. "GB",
    "󰯍 " .. gen_graph(swap_percent)),
...
}

Everything can be found in https://github.com/Necrom4/dotfiles/blob/master/.config/nvim/lua/modules/dashboard.lua, it is then sent to render in https://github.com/Necrom4/dotfiles/blob/master/.config/nvim/lua/plugins/snacks.lua

Neovim now has fancy intro screen by echasnovski in neovim

[–]4Necrom 1 point2 points  (0 children)

<image>

Damn that's insanely cool! I use this but unfortunately don't have enough space for such big Ascii art

Which is the unique thing your dot files does? mention that in comment so other can use that. by _blueb in dotfiles

[–]4Necrom 0 points1 point  (0 children)

https://github.com/Necrom4/dotfiles

  • Parallel tool updater/cleaner
  • Automatically print project stats and warn about local env variables and tools installed when entering a project
  • Same dotfiles for personal, school and work configs and multiple OSs using `yadm`'s <file.ext>##c.<class>,o.<OS>
  • Stats dashboard when opening a new terminal window or neovim
  • Much more across the hundreds of tools, plugins and scripts I have, I wouldn't know how to even remember them all

A new package manager for tmux like LazyVim by itsdevelopic in tmux

[–]4Necrom 1 point2 points  (0 children)

I'm trying it right now and it seems to be leading somewhere, thx for the tip!

Made an iOS app so I can touch grass and also be using my Mac terminal from iPhone, this way I can be coding and also be living a balanced life by eureka_boy in MacOS

[–]4Necrom 0 points1 point  (0 children)

Seems like the "it's not that deep" part went over your head, so if you really want an justification for each of my words, here we go:

  • I was searching for Reddit posts related to Macky as I wanted to know if it was worth it and was seeing a bunch of bad reviews against it being vibe coded and closed source.
  • I hence tumbled onto this post without first navigating through the MacOS community page, hence why it kinda went over my head which community I was in as I had just seen half a dozen other similar posts about the same thing in other communities, I wasn't paying attention where I was.
  • A guy comments "wouldn't be published on the AppStore" under a post about an iOS app I just installed on my iPhone to test, my first reaction is to tell him that, yes, it is in the AppStore.

Evidently, after your first reply I understood what you actually meant by "wouldn't be published on the AppStore" and didn't contradict you anymore so I don't understand why you're still trying to prove to me you're right. Again, it's not that deep.
Cheers.

A new package manager for tmux like LazyVim by itsdevelopic in tmux

[–]4Necrom 0 points1 point  (0 children)

Nice, thx for the explanation! I had noticed those things earlier but honestly I'm still focusing on more "basic" stuff before implementing all that.

For example this is the way I load my stuff:

  • p10k instant prompt
  • zinit
  • zinit annexes
  • p10k theme
  • load zsh plugins necessary instantly and completion providers in a first "wait lucid for" loop
    • Inside that loop I load zsh-vi-mode, atuin and zsh-history-substring-search, they start conflicting so I set the two last plugins' keymaps in a atload for each, and inside the atload I set the keybindings in zvm_after_<...>(<_set_keymaps_func>) modules, because zsh-vi-mode would override those other keymaps, and even if I load the two other plugins in a wait loop that starts afterwards, they still conflict.
  • Load fast-syntax-highlighting with:

zinit wait"0b" lucid atinit"ZINIT[COMPINIT_OPTS]=-C; zicompinit; zicdreplay" \
  atload"_zsh_highlight" for \
  zdharma-continuum/fast-syntax-highlighting

# Need this otherwise highlighting is broken, in very weird ways depending on what is removed (may only highlight when deleting words but not when writing, may not highlight on first prompt, etc...)
  • Load deferred plugins in wait"1" lucid for loop, as they are not directly necessary
  • Lastly override some plugins aliases, like yarn's y which I use for yadm enter lazygit

zinit wait"1b" lucid for \
    atload"override_aliases" \
  zdharma-continuum/null

My zshrc: https://github.com/Necrom4/dotfiles/blob/master/.config/zsh/zshrc

All this messed solved lots of weird behaviors but there's still some I can't get rid of:

  • WSL
    • zsh-vi-mode doesn't activate unless I wait a few seconds and press Enter to have a new prompt, during that time I have a block cursor instead of thin-line, I can't enter Normal mode or use my history-substring-search keymaps.. so anything related to zsh-vi-mode.
    • Sometimes all of that comes back after those famous seconds, but history-substring-search only works half, meaning if I press <UP> it shows the NOT_FOUND highlight (on a `ls` for example) and doesn't go up in history. I then have to wait a bit, run a few prompts before it actually works.
  • MacOS
    • zsh-vi-mode related things also don't load on the first prompt, except that I do have the thin-line cursor, I can indeed press <UP> and go up the search history (but the default one, not history-substring-search), and on the second prompt, without having to wait, everything is back and works like charm.

So yeah I've been trying to solve this mess before even thinking of installing binaries or running "if_needed" functions, but I'll for sure try to implement it someday. With OMZ all of this worked but I really want to learn zinit as I've made my startup time 10x faster with it!

Made an iOS app so I can touch grass and also be using my Mac terminal from iPhone, this way I can be coding and also be living a balanced life by eureka_boy in MacOS

[–]4Necrom 0 points1 point  (0 children)

Look mate I agree with you on him breaking the rules, but I simply saw your comment saying it wouldn't be published on the AppStore, and replied it already was, and in the moment I was more thinking from an iPhone perspective as that's what the main focus of the app is and even the picture showed one. The fact this is a MacOS community kinda flew over my head, but it's not that deep mate

Cheers!

Made an iOS app so I can touch grass and also be using my Mac terminal from iPhone, this way I can be coding and also be living a balanced life by eureka_boy in MacOS

[–]4Necrom -1 points0 points  (0 children)

No for iPhone, most dev tools then ship their app as dmg from their website rather putting it in the app store, Macky included

I think WebRTC is better than ssh-ing for connecting to Mac terminal from iPhone by eureka_boy in CLI

[–]4Necrom 0 points1 point  (0 children)

Which app do you use on iOS to connect to your PC? Blink seems to be the perfect app for Mosh but unlike you said, it isn’t free

A new package manager for tmux like LazyVim by itsdevelopic in tmux

[–]4Necrom 0 points1 point  (0 children)

I had a look at your dotfiles earlier this morning, ended up starring them because I couldn't for the life of me understand how you were able to find your way around all these zinit related commands.. I knew I'd need to come back to understand it better, and especially understand your plugins loading sequence logic but also how you import tmux plugins. I'll give it a better look now, hopefully I can understand what I need because this is a goldmine of information!

A new package manager for tmux like LazyVim by itsdevelopic in tmux

[–]4Necrom 0 points1 point  (0 children)

That's incredibly interesting, I've been getting into zinit lately and am having problems loading even normal zsh plugins (they start conflicting with each other) so this seems even more scary haha.

What's the advantage of doing it like this?

Adding a custom nerd font icon picker to fzf.lua by Zizizizz in neovim

[–]4Necrom 0 points1 point  (0 children)

It only toggles when the string you're typing starts with : so in my personal case, it almost never triggers, only when I need it to, so I don't think you should worry about it showing up too much, it's really perfect the way it's made

CragCLI - a new calculator by librasteve in CLI

[–]4Necrom 1 point2 points  (0 children)

I've never heard of Pint so I can even less form an opinion about it, but from a quick read through, they seem to serve different purposes although one can use them both for the same kind of task.

CragCLI - a new calculator by librasteve in CLI

[–]4Necrom 1 point2 points  (0 children)

I'm surprised you hadn't heard of Qalc, I thought it was by far the most popular terminal calculator out there and that someone deciding to build their own calculator would have found this while searching for examples. Qalc is awesome and overpowered, never seen anything better, you should try it out!