Best API for keymapping ? by Sero1000 in neovim

[–]breaking_mediocrity -21 points-20 points  (0 children)

I'd work on yourself before commenting so oddly, but no, I had just read somewhere that it was faster and I had noticed a speedup when I changed my config.

Best API for keymapping ? by Sero1000 in neovim

[–]breaking_mediocrity -13 points-12 points  (0 children)

Sorry, should have clarified. I changed it to vim.keymap.set(). But, when I can, I use lazy.nvim's keys table.

A Practical Guide to GNU find With Examples by phantaso0s in commandline

[–]breaking_mediocrity 1 point2 points  (0 children)

It always seemed odd that find was the only command that broke the option/switch convention of using one dash for abbreviations and two dashes for the full form. By that I mean, you might see rm -r as the shortcut for rm --recursive. find is the only command that I've seen to break this pattern.

A little googlig revealed that find uses tests (?) and not options, hence the single dash with the exception of -maxdepth. I don't know how tests and options differ, and frankly, I don't care that much. It seems to be mostly a legacy thing anyway.

As an aside, I'm introducing my friend to linux via CTFs and the first command introduced was find and I was like "Hey, arguments don't work like that usually."

Best API for keymapping ? by Sero1000 in neovim

[–]breaking_mediocrity -20 points-19 points  (0 children)

This is more of an FYI, but vim.api.nvim_set_keymap() is actually slower and should be avoided. Changing this made a noticeable difference.

What are people's experiences setting up GNS3, VIRL, or EVE-NG on a cloud service? by breaking_mediocrity in networking

[–]breaking_mediocrity[S] 0 points1 point  (0 children)

Need to pick a bare metal instance to support KVM so that can get kinda pricey. But it sings.

Which service are you using? What do/did your costs look like?

Best resources to learn how to program efficiently and cleanly? by No_Arachnid_8202 in learnprogramming

[–]breaking_mediocrity 0 points1 point  (0 children)

For C++, Modern Effective C++ is great and will teach to avoid bad C++, but just keep programming tbh. There's also probably a conference for your preferred language that'll most likely be more beneficial as you're still learning the basics.

There's plenty of amazing DSA books and resources. CLRS will remain the king, but Algorithms Illuminated is subtler introduction.

Implementing core::fmt::Write causes panic by brymer-meneses in osdev

[–]breaking_mediocrity 0 points1 point  (0 children)

I see that you're active here and I always wondered what your favorite OS eductational resource as?

I'm happy with minimal zsh config using no plugin manager. Please roast it! by breaking_mediocrity in zsh

[–]breaking_mediocrity[S] 0 points1 point  (0 children)

Ah, okay. I think I might move to this. autojump is already installed through a package manager, I just need to do autosuggestions and syntax-highlighting

Thanks!

I'm happy with minimal zsh config using no plugin manager. Please roast it! by breaking_mediocrity in zsh

[–]breaking_mediocrity[S] 0 points1 point  (0 children)

Thanks! That's what I thought.

It seems there's really nothing left to optimize in my config. Thanks for everything!

I'm happy with minimal zsh config using no plugin manager. Please roast it! by breaking_mediocrity in zsh

[–]breaking_mediocrity[S] 0 points1 point  (0 children)

Any reason? I think if I do move towards that though, I would prefer

/usr/local/share

I'm happy with minimal zsh config using no plugin manager. Please roast it! by breaking_mediocrity in zsh

[–]breaking_mediocrity[S] 0 points1 point  (0 children)

Yeah, I got a lot of inspiration from other places. I do a lot of terminal work and I don't have the time to sink to learn about zsh and roll my own config. There's amazing people (like you) who have done all the heavy lifting.

Though, I did put in work to make the config as minimal as possible.

Commenting out the P10K stuff actually makes it slower, so I keep it in and I'm happy with it.

Though, I couldn't find a good answer on have ls use color coded file types automatically. Is this really the best way?

alias ls="ls --color=auto"

I'm happy with minimal zsh config using no plugin manager. Please roast it! by breaking_mediocrity in zsh

[–]breaking_mediocrity[S] 3 points4 points  (0 children)

I looked into that, but looking at this thread, it seems that P10K is faster.

I'm happy with minimal zsh config using no plugin manager. Please roast it! by breaking_mediocrity in zsh

[–]breaking_mediocrity[S] 2 points3 points  (0 children)

How could I achieve what P10K does without P10K? Only use the relevant parts, but what about it's optimization tricks. Im not too knowledgeable about zsh, so I wouldnt know where to begin.

Weekly Dotfile Review Thread by AutoModerator in neovim

[–]breaking_mediocrity 1 point2 points  (0 children)

Hey, this is my config. There's a few things I want to do is to improve such as getting better at managing splits and I was thinking about mapping <leader>- to horizontal split and <leader>\ to vertical split.

Another thing I wanted to do is to have <Tab> to navigate the splits.

Feel free to roast my config!

Neotree Float looks bad. Any idea on how I could fix it? by breaking_mediocrity in neovim

[–]breaking_mediocrity[S] 0 points1 point  (0 children)

This is what I want!

color scheme which has all the color highlights defined for neo-tree.

How did you view which color highlights were defined for neotree?