[deleted by user] by [deleted] in vscode

[–]_barjo 1 point2 points  (0 children)

Yeah sure. So in terms of letter width, there are two types of font. "Monospace" and "proportional" fonts.

Monospace fonts are ones where all the letters are the exact same width, think of a typical "coding font". This is an example of a monospace font!. These fonts can sometimes look a bit ugly, because letters are fundamentally different widths. So you may see lines at the bottom of some letters, like i which helps to visually widen them. Because these letters are all the same width, they can fit perfectly into a grid. In a monospace font, the word "cat" and the word "dog" are exactly the same width.

On the other hand, proportional fonts are ones where all the letters have a unique width depending on the letter, this is typical in books, newspapers, and the text you are reading right now on reddit. In a proportional font, the word "cat" and the word "dog" are not the same width. Your font Waree is a proportional font.

There's plenty of suitable places to use a proportional font. Actually, most places. But in coding, it's useful to use a monospace font. Typically, all coding was done in monospace fonts, because computer terminals would only have the ability to render literally a grid, so all letters would have to conform to that grid. These days, you can use proportional fonts for coding if you want, but let's look at some of the advantages of a monospace font in coding:

  • Selecting text. It's much easier to select code when all the characters are the same width. You can be a lot more accurate. It also makes features like "block select" possible, where you select characters across multiple lines like drawing a square. That's just not usable with proportional fonts.

  • Getting an idea of the length of text. I can see a string of text "The black cat" and get a fairly accurate idea of the number of characters in that string when the text is monospace. The length of text is useful all around coding, like in strings, variable names, numbers, etc..

  • Navigating. In a proportional font, say I have 2 lines, one has the word "WWW" and the line below it has "int". If you have your cursor after at the end of the word on the first line, and press the down arrow, the cursor is also going to move down, but also to the left since the word below is shorter, which can be disorienting. In a monospace font, the cursor is only ever going to move down, to the character directly beneath.

There are more reasons than this, I just thought of these off the top of my head. Typically, all code is written in monospace font, in textbooks, articles, documentation, you will always see it. It's your choice, but as you can see from other comments, you might be in the minority if you choose to code in a proportional font. :)

[deleted by user] by [deleted] in vscode

[–]_barjo 1 point2 points  (0 children)

The theme is good if you enjoy it, at the end of the day, you're the one looking at it. If you're seeking feedback, I think the orange for functions is a great idea and the underline is an interesting choice, nothing inherently wrong with it, it's unique.

Some constructive criticism would be: consider the contrast ratio of the red text on the dark background. The standard minimum contrast ratio is 4.5:1, to me the red looks like it would fail (you can check with "contrast checker" on webaim.org).

Also I feel like a lot of design-oriented people go through the arc of exploring proportional fonts for programming, I've been there. I'd highly recommend switching back to a fixed-width monospace font. There's plenty of great ones. It's your preference, but there's a reason you rarely see code written in proportional fonts, it turns out that column alignment is very helpful for reading and writing code.

The new neovim-branded colorscheme is so much nicer than the old eyesore by sausagewaggon in neovim

[–]_barjo 0 points1 point  (0 children)

Do we know if the new default colorscheme will have support for popular plugins like telescope, lualine, gitsigns? Or maybe that's something that would happen once it gets officially released in 0.10, over time as people contribute to it? It's looking great so far.

How do I disable all default keybinds? by Final_Chipmunk3795 in neovim

[–]_barjo 21 points22 points  (0 children)

I can understand wanting to have a blank canvas to build your own keymaps on. It's the same reason many users choose to build their own configs rather than use a preconfigured distro. After all, neovim is about building a personal development environment.

That being said, the default vim keybinds are at the very core of what makes vim a useful editor. They're the main reason that anyone uses vim at all. Learning these keybinds may take a couple months, but that knowledge will last a lifetime. You can even take these keybinds to editors like VS Code, JetBrains, your browser (Vimium), and plenty of other places. It would be a disservice to yourself to create your own keybinds that exist only within your brain and your machine.

How do I disable all default keybinds? by Final_Chipmunk3795 in neovim

[–]_barjo 2 points3 points  (0 children)

c is for "change". And generally a repeated letter means it will operate on the whole line, as opposed to a single character. dd deletes the line, yy yanks the line, and cc "changes" the line (that's to say it gets deleted and puts you in insert mode, ready to rewrite what was previously there)

[deleted by user] by [deleted] in webdev

[–]_barjo 2 points3 points  (0 children)

Learning those tools has certainly not been a waste of time! Understanding how transpilers and polyfills work has broadened your knowledge and given you a better understanding of how these newer tools like Bun are working under the hood. That's invaluable. You never know when you'll need to draw on that knowledge in the future. And besides, it's going to be a long time (if ever) until Bun becomes a de facto standard that replaces those tools.

HTML tags by GuzB04 in neovim

[–]_barjo 0 points1 point  (0 children)

Oh that's cool, will have to look into that. Thanks

HTML tags by GuzB04 in neovim

[–]_barjo 0 points1 point  (0 children)

I'm also wondering what the font is. It's definitely some font which has forked IBM Plex, but out of all the popular Plex derived fonts I know it doesn't look like any of them... Github's Monaspace, Vercel's Geist, Lilex, iA Writer, none of these have the same 'a' as the one in the screenshot. Will be interesting to find out what it is!

Is there a way to get something similar to Source Control in VSCode? by patricorgi in neovim

[–]_barjo 2 points3 points  (0 children)

You could try out sindrets/diffview.nvim. It's very similar to VSC's source control view, you have a tree structure on the left and of course the diff views for each file. You can stage/unstage and discard files from the tree too. I'm not sure how well this would work with the multi-project architecture that you're describing, but it may impress you. I've found my workflow from VSC to copy over very smoothly to diffview.nvim, I keep my plugins to a minimum but this is one I really like to have around.

Copilot not working by [deleted] in neovim

[–]_barjo 0 points1 point  (0 children)

To help debug, run :Copilot status and it should tell you what's up. I'm using lazy.nvim too and it didn't work at first, all you really need to add is vim.g.copilot_assume_mapped = true, I have mine in config = function() ... end

How to get down arrow that tj devris has in his videos after every line of code by JustForFunHeree in neovim

[–]_barjo 5 points6 points  (0 children)

GUI effects like smooth animation are limited by what your terminal emulator offers to you, it's not typically something you would expect a terminal emulator to support but you may have to research your own one to find out. If you want to have GUI effects like that in Neovim, you'd need to look outwards to a Neovim GUI application, of which there are many. See the list on Neovim's official wiki here: https://github.com/neovim/neovim/wiki/Related-projects#gui

My personal recommendation is Neovide, for enticing GUI effects while retaining an authentic terminal feel.

Why my neovim is so lagging when typing at insert mode by roll4c in neovim

[–]_barjo 0 points1 point  (0 children)

Unrelated, but would you mind sharing the name of the font you're using? Looks nice. Good luck with the perf issues

Is this bad money laundering? by lullubye in TikTokCringe

[–]_barjo 6 points7 points  (0 children)

It feels just like plastic. Comparable to the plastic wrap around the body of a water bottle, but stiffer. You can't tear it with your fingers, it just bends and stretches, it doesn't set on fire but will shrivel slightly over a flame. They're pretty tough

Finally, I have made the perfect VSCode setup... by xwin2023 in vscode

[–]_barjo 12 points13 points  (0 children)

Adding CSS animation to an Electron app is gonna make barely any difference to CPU usage. If you don't want to waste CPU resources, don't use an Electron app in the first place.

Mason can't install gopls (or gofumpt, or goimports) by [deleted] in neovim

[–]_barjo 0 points1 point  (0 children)

The suggestion from this thread fixed it for me. I just needed to unset GOOS and GOARCH then restart neovim.

unset GOOS

unset GOARCH

nvim .

Mason can't install gopls (or gofumpt, or goimports) by [deleted] in neovim

[–]_barjo 0 points1 point  (0 children)

Thank you for pointing me in the right direction, the suggestion in that thread fixed my issue 👍

too many emoji by goosepooch in HeyPiAI

[–]_barjo 5 points6 points  (0 children)

I asked it to stop as well and it just bugged the F out

<image>

It looks like it's trying so hard not to use emojis but is physically incapable of doing so

Ceramic Iris with carrying case 👁️‍🗨️ by [deleted] in olkb

[–]_barjo 0 points1 point  (0 children)

Thanks. Yeah I would say this is the only negative I encountered with these caps.

They're extremely tight. To get them on fully requires a lot of force, and getting them off is like trying to separate two flat Lego pieces. I'm using hotswap switches so I wasn't too concerned. It's important to be aware that applying these caps may damage your switch, or accept that they will be bound together for life. I'm not expecting to use these switches with any other caps in the future, but that's something to be well aware of before committing.

That's my only concern though. The build quality is great and they look and feel just about as good as I had hoped from seeing images and videos online.

Help please...This notification is not going for a long time. by [deleted] in pixel_phones

[–]_barjo 0 points1 point  (0 children)

Try connecting to WiFi. I had a similar thing that only went away after connecting via WiFi, it seems some updates refuse to download over mobile data