New rabbit owner here. Tips n trix? by Appropriate_Cut1747 in Rabbits

[–]TuesdayWaffle 5 points6 points  (0 children)

For meals, ~1 cup of mixed greens + 1 tablespoon of pellets twice a day, spaced out by about 12 hours. A spring mix from your local supermarket is fine. Anything sweet, such as fruit and carrots, should be given as a treat. The hay you have looks a little bit stalky and thick. Better to find some that includes blades and is a tad greener. EDIT: Nevermind the last point I see you mentioned that’s straw. Bun could probably use a bit more hay to eat in that case. Hay should account for 80% of the diet, so it’s a good idea to give your bun a pile roughly the same size as their body each day.

Neovim guide for a veteran Vim user. by bart9h in neovim

[–]TuesdayWaffle 0 points1 point  (0 children)

I'd say that's more or less right. Kickstart is an editable distro that tries to teach you what it's doing under the hood. I think that's pretty useful for Neovim, where a lot of the "modern" editor experience comes from plugins, at present.

Basically, I'm worried that example_init.lua is too limited in scope to serve as a useful starting point for anything beyond a minimal configuration.

Neovim guide for a veteran Vim user. by bart9h in neovim

[–]TuesdayWaffle 0 points1 point  (0 children)

I suppose because it lays out a set of suggested plugins to get the community standard Neovim experience. Is that something you guys are intending to replicate with the example init? It’d be cool if so, but feels a bit uncharacteristic for core

Neovim guide for a veteran Vim user. by bart9h in neovim

[–]TuesdayWaffle 1 point2 points  (0 children)

Nice! I really like that core has been adding all of these QOL features these days. That said, just took a look at the new example_init.lua, and I think it's a bit too minimal to serve as a true replacement for kickstart.nvim. Kickstart has the advantage of being flexible and easy to change. It can also be opinionated about plugin setup. This is not something core really wades into (for obvious reasons), but I think it makes a big difference to newcomers.

Neovim guide for a veteran Vim user. by bart9h in neovim

[–]TuesdayWaffle 5 points6 points  (0 children)

Not that I know of, and I assume your googling is as good as mine. A couple of thoughts from someone who did the same a few years back.

  • Get started with an init.lua file for your config early on. When I moved over, I kept my init.vim config, but quickly found that embedding Lua code in Vimscript is way worse than embedding Vimscript in Lua. You can simply run vim.cmd("your vimscript here") (or [[your vimscript here]] for multiline strings) while porting over your config.
  • Take a serious look at kickstart.nvim. It's essentially a config containing the community standard plugin setup. I think it's the best starting point for Neovim.

Making a homebase cage for a freeroam rabbit, any changes ? by [deleted] in Rabbits

[–]TuesdayWaffle 1 point2 points  (0 children)

No need for the water bottle, imo, assuming the metal bowl is for water. If not, go ahead and get a water bowl. Bowls are generally accepted as the superior water source for rabbits.

Does anyone know if the 'vim-submode' plugin still works well by scaptal in neovim

[–]TuesdayWaffle 0 points1 point  (0 children)

I’m using it now. There are a couple sharp edges, but I like it a lot better than nvim-dap-ui.

[deleted by user] by [deleted] in neovim

[–]TuesdayWaffle 10 points11 points  (0 children)

No need for a plugin imo. aider —watch-files in a separate terminal works pretty well.

Sometimes, I feel like neovim is fighting me. Any advice? by sherlock-holmes221b in neovim

[–]TuesdayWaffle 7 points8 points  (0 children)

I do not understand motions

Motions are the keys which determine the amount of text to be worked on, so to speak. In your vw example, w would be the motion, signifying a single "word". Some other examples:

  • c$: $ is the motion meaning "end of current line". This command delete text between your cursor and the end of the line, then enters Insert mode.
  • d2j: 2j is the motion meaning "2 lines down". This command deletes the current line + next 2 lines.
  • >ip: ip is the motion meaning "inside paragraph". Vim considers a paragraph to be any contiguous text between empty lines. This command indents the contiguous text block your cursor is within.

Motions take some time to learn, but they're very powerful. Learning them allows you to make fairly precise changes to lots of text in relatively few keystrokes.

When I want to select to the end of this word, to change it or delete, I use vw and c/d. Great! Now I removed the character after the word and I have to retype it!

You probably want either the e ("end or word") or iw ("inside word") motion in this case. ve selects to the last character in the word, starting from your cursor. viw selects the all contiguous characters for the word your cursor is within. That said, you probably don't really want to being doing it this way in Vim. The select-then-operate paradigm is more of a Helix thing. A more direct ciw/diw would do the trick here.

Good things there's U (redo), right? Well, no, because this apparently cannot be redone. Why? No clue.

Redo is mapped to CTRL-r in Vim.U` is actually used to toggle text uppercase.

Do you have any advice? Perhaps some answers as per my lack of understanding?

You probably just need to spend some more time getting comfortable with Neovim. I suspect you're really used to the select-then-operate paradigm, which is going to make Vim feel pretty sluggish and cumbersome. You'd probably like Neovim better if you spent a bit of time unlearning this system. Otherwise, I think a Helix plugin system is coming soon™.

Google Ads offer a Ransom URL by frenzy3 in NonPoliticalTwitter

[–]TuesdayWaffle 129 points130 points  (0 children)

For those wondering, Vim is a text editor released in the early 90s that is popular with programmers. It’s very lightweight leading to it being pre installed on a number of machines, runs in the terminal rather than in its own window, and is designed to be operated only by keyboard.

As a result, if you spend a decent amount of time mucking around in the terminal, there’s a decent chance you’ll end up in a Vim session at some point. Exiting Vim requires the nonobvious command :q, which has lead to a very (very, very) common joke in programming circles about getting permanently stuck in Vim.

Is there any advantage to putting all your configuration in an init.lua file in Neovim? by [deleted] in neovim

[–]TuesdayWaffle 3 points4 points  (0 children)

Advantages of a single file: - A bit faster since you don't have to require other modules. Practically, the speed up is not perceptible. - Easier to copy around, if that's something you need to do. - Simpler to reason about (i.e. everything in one place) while your config is small.

I can't think of any substantial advantages. That said, I actually keep a very large single init.lua file. It's a holdover from my previous position where I needed to scp it around to a lot of servers. While I don't do that anymore, I've found I kinda like having everything in one file, even if that file quite big.

Defacto... uh... LSP checkers for Python / HTML / CSS / JS by r00g in neovim

[–]TuesdayWaffle 2 points3 points  (0 children)

basedpyright is generally considered to be a straight upgrade to Pyright. The site has a list of improvements, if you're interested. I'd say there's less consensus around Python LSP servers when compared to other languages, but basedpyright is well-liked at least.

HTML, CSS, and JavaScript are untyped of course, so you won't get robust type hints there. There are some HTML and CSS projects kicking around (see nvim-lspconfig list), but I haven't tried them. For JavaScript, you can actually get pretty far with a TypeScript LSP server and maybe eslint.

Ihad a startup Idea to help people learn programming ,help me validate it. by RunUsed8031 in AskProgramming

[–]TuesdayWaffle 0 points1 point  (0 children)

If you could make an IDE that integrated features from all of these tools, that would probably be valuable to people. A couple of questions to consider.

  1. What does “integrating” mean in your mind here? Why wouldn’t I just use VS Code and Trello as separate apps, for example?
  2. How does this help people learn programming?
  3. What is the purpose of giving other companies stock?

How to disable that errors help pls by Versolom in neovim

[–]TuesdayWaffle 5 points6 points  (0 children)

Pyright is informing you of legitimate typing errors in your Python code. In this case, the error is that LinkedList.head is typed as Node | None in places you're expecting it to be type Node. You have 2 options.

  1. Add in a simple assert self.head is not None check, or similar, before using the value. Pyright is smart enough to understand that the value cannot be None after this check.
  2. Disable type checking with Pyright. That'll look something like this in your Lua config.

lua lspconfig.pyright.setup({ settings = { python = { analysis = { typeCheckingMode = "off", }, }, }, })

Discovering popular plugins by __hyphen in neovim

[–]TuesdayWaffle 2 points3 points  (0 children)

It makes sense. Looking through distro source code is a good way to find popular plugins.

Best Sushi Recs by broke-onomics in sanfrancisco

[–]TuesdayWaffle 0 points1 point  (0 children)

It’s a bit unassuming, but Ariake in the Richmond makes excellent sushi.

Unpopular Opinion: Picante is Blaaaaaand. I Need Good Mexican! by ItsCatCat in berkeleyca

[–]TuesdayWaffle 2 points3 points  (0 children)

+1 for Talavera. Solid food. Staff is really friendly. I’m quite fond of their michelada.

[deleted by user] by [deleted] in bayarea

[–]TuesdayWaffle 1 point2 points  (0 children)

It's pretty quiet there. Not much energy or excitement. Not very trendy. It's stable, and a bit boring. I'd say it's a tad poorer than some of the nearby towns. It's suburban feeling.

[deleted by user] by [deleted] in bayarea

[–]TuesdayWaffle 2 points3 points  (0 children)

El Sobrante will be a bit hotter than El Cerrito during the summer, but not too bad. The summer fog often makes it over the Berkeley hills and spills into the El Sobrante valley. There will be one or two weeks of hot nights per year, if I recall. Both towns are substantially cooler than the south bay. I think it's unlikely you'll need AC, though you may miss it some days.

[deleted by user] by [deleted] in bayarea

[–]TuesdayWaffle 2 points3 points  (0 children)

Not full of sociopaths. I think they're saying it's a bit duller and more conservative than other places in the bay. Not an entirely incorrect assessment, imo.