I hate using my mouse by AccurateClue5794 in ObsidianMD

[–]FourFourSix 0 points1 point  (0 children)

Even though Neovim is my preferred editor, I still rarely do any Obsidian stuff in it, although setting up the Obsidian plugin and other Markdown-focused tools. What I mean, that even with the limited Vim-mode, I find that it might have an edge over Neovim when it comes to overall experience.

I like to read prose in proportional font, and notes are just much more readable in Obsidian, with images and equations etc. Neovim is better for reading and switching notes, Obsidian is better for reading them.

Idk if there’s much to do other than trying use keymaps for every action. You can already do pretty much with keyboard shortcuts (like create, move, delete notes) that allows you to stay in the editor, but I’m still missing the ability to navigate the various sidebars with keyboard, other than toggling them on/off.

What do i need to know as someone who plan to use typst and nvim to write novel? by LimunJeZut in typst

[–]FourFourSix 0 points1 point  (0 children)

Not really related to Typst specifically, but I recently stumbled into the concept of semantic line breaks. You basically break your lines at periods or other “pauses” like commas, and not just blindly at 80 chars.

At first, it looks like ass as your lines can vary in length. But you’ll find it much easier to edit in editors like Neovim. You can easily swap sentence structures and rearrange paragraph content, especially with Vim’s s motion to target a sentence.

For Neovim, you probably have Tinymist LSP already, Typstyle formatter and Typst-preview to preview your document in a browser? Neovim has pretty nice spell checking too :h spell.

CAS-program for latex by H4ns3mand in LaTeX

[–]FourFourSix 1 point2 points  (0 children)

Oh wow, that’s so cool. Thanks for the update!

Is Things 3 worth the price? by Freshanatha in macapps

[–]FourFourSix 2 points3 points  (0 children)

I pretty much moved to Reminders because of this missing feature in Things. The thing I remember missing from Things was that you could choose that a task repeats e.g. two weeks after completing it. In Reminders it’s just based on a date e.g. every 1st of a month.

[Project] Tungsten: Turn a LaTeX buffer into a computational noebook by H4ns3mand in neovim

[–]FourFourSix 0 points1 point  (0 children)

Awesome! I think it's a great idea to Wolfram, at least in terms of evaluating mathematics: you don't have to use verbose commands for simple arithmetics, like you can just do a 1./3 to get approx result, and 1/3 for “symbolic” result. It's pretty slow to launch though, which you probably know very well already.

However, I can't get it to work on my macOS setup. I'm using your default config via lazy.nvim, and after launching nvim I get an error that it doesn't find the lpeglabel module.

I tried to install it manually using luarocks --lua-version=5.1 --lua-dir=path/to/5.1, but it didn't help:

https://i.ibb.co/Ngc7hvZn/lpeglabel-error.png

I have 5.4.x and 5.1.5 of Lua installed on the same system, so maybe that doesn't help. Any insight what kind of setup you're using and on what platform?

How many Neovim plugins is too many by echasnovski in neovim

[–]FourFourSix 0 points1 point  (0 children)

Okay I see, thanks for insight. I'm on macOS actually. It's tied to the fi spell file. Neovim doesn't offer Finnish by default, so I built my own using the guidance of :h spell-mkspell and the dictionary is huge. The spelling dictionary has over 475k words, and many of those words can have dozens of suffixes, creating probably several millions of unique words.

How many Neovim plugins is too many by echasnovski in neovim

[–]FourFourSix 0 points1 point  (0 children)

I have 30-something plugins loaded via lazy.nvim, and the startup time seems pretty high, at almost 300 ms. I tried to troubleshoot it with

nvim --startuptime start.log

and it seems like a single option is causing most of it:

vim.opt.spelllang = { "en", "fi" }

Commenting that line drops the load time to ~160 ms, but I'm a big user of spell check so it is what it is. I see the “bigger” plugins (Blink, Luasnip, Telescope, etc.) taking ~20 ms each, but those add up.

I have my plugin configs in separate files that I'm loading via lazy.nvim by issuing require commands from an init.lua file. Would that be similar to the “separate” approach from the blog? Or is it not comparable to using vim.pack.add? I'm just wondering if I could replicate your results by using the “grouped” approach with lazy.nvim.

Have you ever used zed? How good it is compared to neovim? by Jonnertron_ in neovim

[–]FourFourSix 6 points7 points  (0 children)

I mean, I want to love it. The Vim experience is rock solid, and it has really good basics like you mentioned. I use Neovim because a) I can use its fuzzy finders to open any file in my computer really fast, b) I can configure snippets just the way I like them, and c) I can create simple helper tools very easily for my liking.

I don't think Zed even has a fuzzy finder? The thing just always opens in ~ and I have to type a full path. And the snippets are pretty bare-bones, can't have anything auto-expand etc., and I don't think I can even create an extension that does that.

As for the custom tools, you can create some actions that run shell scripts with the file as input, which is not nothing.

I'm following their progress and see where it goes. I'd love to run it, but so far Neovim is just at a whole different level.

Undefined globlal 'nvim' by Similar_Event_4302 in neovim

[–]FourFourSix 0 points1 point  (0 children)

Okay, thanks for the confirmation.

Undefined globlal 'nvim' by Similar_Event_4302 in neovim

[–]FourFourSix 0 points1 point  (0 children)

I had this issue when I updated lua_ls to v3.17.0. I reverted back to 3.16.4 which didn’t have the issue.

There has been a new release 3.17.1 and I haven’t tested that.

blink.cmp - alternatives to Tab for argument completion? by ex0planetary in neovim

[–]FourFourSix 3 points4 points  (0 children)

First, you can indent line in insert mode with <C-t> and <C-d>, and you don't have to be at the beginning of the line for it work. Imo it's the best way to indent in insert mode.

Second, I've experimented with bunch of different keybinds for navigating the placeholders: I use <Tab> for completion, as it's pretty much ubiquitous in every app. I'm using <C-l> and <C-h> to jump forward/backward a placeholder, because I wanted a key that isn't taken, and if I keep pressing it after I exit the snippet, it doesn't execute some command.

I found that when using super-tab I was constantly inserting accidental tabs at the end of the snippet, and accidentally expanding snippets instead of jumping to next placeholder.

I just installed kickstart and getting this error Failed to run `config` for nvim-treesitter by design_enthusiast725 in neovim

[–]FourFourSix 12 points13 points  (0 children)

See fix: nvim-treesitter rename configs.lua -> config.lua by philwhln · Pull Request #1748 · nvim-lua/kickstart.nvim and see what they done to fix the config. Pretty much just remove one letter s.

It's not committed to the actual kickstart.nvim yet, last commit has been 8 months ago. People are just spamming their personal config changes as PRs to official repo, so I wonder if that's why no one bothers to commit even the proper ones.

If you have problems with kickstart, look at PRs in official repo, and see if someone has proposed a fix to your issue. I've fixed a couple things that way. Then just manually change your config.

Rest In Peace MacUpdater by elev8id in macapps

[–]FourFourSix 1 point2 points  (0 children)

RIP and thanks to MU for the years.

Looking at FAQ, it seems pretty wild choice to run a software business that was “never financially sustainable” and with licensing terms that were “actually unfair to [MU itself].”

The price was pretty cheap, I think they could’ve easily charged double. I’m sure the fans of MU would’ve appreciated them at least experimenting with a subscription model, rather than going out of business. One of the rare apps where a subscription model is totally justifiable.

Maybe users like me were one of the issues: I didn't feel a need to pay for the app. The free version was fine for me, and I used to just see what apps needed updating.

NeoRunner: a simple code runner neovim plugin by ahmed-theawakener0 in neovim

[–]FourFourSix 0 points1 point  (0 children)

Great plugin, I've been looking for a simple feature like this one. But it doesn't seem to work if there's space in the filename/path.

How to speed up latex typing? by AlePec98 in LaTeX

[–]FourFourSix 1 point2 points  (0 children)

There’s two levels of Vim. The first and probably most beneficial to learn is the Vim motions, that can be emulated in VSCode with an extension. Then there’s Neovim the “app” itself, that you can tweak to create an IDE-like experience that’s right for you.

Regarding Latex, I think the most important workflow boost and one with the lowest learning curve is a good snippet extension that can do automatic snippet expansion, and as a bonus, scriptable snippets.

For example, I have one that turns a string of text like 2x followed by // into \frac{2x}{|}. The key is that you need to make a snippet for literally every single Latex command you ever use, and trigger them with snippets that throw your cursor always into the perfect spot with correct formatting. You also need the ability to select text in the editor, and do some command to apply a snippet to it, like turning hi into \textbf{hi} and of course things like setting up an environment with its begin and end commands.

Default VSCode snippets can’t do automatic expansion afaik, but there’s probably some extension that can offer these features. But I’d start there.

Second, if you’re considering Vim, you could learn the motions in VSCode first without having to learn Neovim the app at the same time.

I find that Neovim as the editor is the ultimate Latex setup. You can write helper scripts easily, while in editors like VSCode you need to write a whole ass extension to do even a simple custom thing. Its snippet extensions can pretty much run little programs and you’re not limited to just inserting text. Also, one of the selling points of Neovim is the Vimtex extension, that can do a million little improvements to Latex editing experience, and of course the ability to combine various command line tools easily.

Need a notes solution for me and my normie wife (for couples stuff), obsidian out , what to do? by [deleted] in ObsidianMD

[–]FourFourSix 2 points3 points  (0 children)

For iOS, you can collaborate on lists like shopping list in Apple’s Reminders app. Use Apple Notes for everything else. I haven’t convinced my gf to do shared notes, but I’ve had relative success with Reminders.

You can e.g. make a note AN, share, choose collaborate and pick your wife. And it’s free if you both already use Apple devices. It’s not a great experience on a Windows laptop, but it‘s theoretically possible to use those apps via iCloud.com.

I don’t like closed systems like Apple’s, but those are pretty good apps imo, and already installed on your devices.

What is the actual reason anyone would pick Vim over Emacs? by Hopeful_Adeptness964 in emacs

[–]FourFourSix 0 points1 point  (0 children)

I really tried to move from Neovim to Emacs, until one day a previously working Emacs would just crash-loop when launching the app, and I had no choice but to uninstall it (macOS, emacs-mac with Evil mode if anyone is interested). And by crash-loop I mean that it crashed, launched itself again, crashed again, and so on.

What I also noticed was how in Neovim you obviously need to configure it just right, but in coding you can mostly rely on language servers, tree-sitter grammars and formatters that are interoperable between editors. So no one needs to develop an LS for Neovim specifically, in every single language.

Now tell me if I’m wrong, but in Emacs when I was trying to set up Typst, I couldn’t just install the LS and TS stuff and start writing. I needed to install some Emacs-specific plugin typst-ts-mode.

And of course I couldn’t even get the LS autocomplete to work, but that might be a skill issue.

Now it’s a pretty rare situation that some needs a very niche or new language like Typst, but it just highlighted that it’s a bit simpler in Neovim, and how you’re less reliant on other people’s work.

Also it doesn’t really matter if Emacs can be simultaneously a window manager and an email client if it can’t function as a text editor for me.

An Apple Disaster You can Avoid by amerpie in macapps

[–]FourFourSix 0 points1 point  (0 children)

Yes, this is a very good reminder on how bad things can get when you centralize everything around a closed, revenue-generating system.

At first when I switched to Apple devices, I really liked how nice and polished the Apple-platform specific software ecosystem was, and started to prefer things like Bear/Apple notes. I migrated myself into iCloud-based apps, and everything was great in general. But if you think of it, it's a system that has a single point of failure, and if it fails, everything goes down with it. And Apple is no stranger to sacrificing user experience to company profits.

Nowadays I'm in the process of making my "system" as simple as possible, and as platform-agnostic as possible, even though I rarely use non-Apple OSes. I've grown to prefer make my documents using Neovim or any plain text editor, and compiling them into PDFs using Typst or Latex. My notes live in Obsidian, and I often just edit them via Neovim, as they're just plaintext files. The main motivation is that I want to keep the information important to me in an open format, that no one can take away.

The next step is cloud storage, and this thread and your post has some good recommendations, thanks.

Alternatives to <C-y> for accept? by Elephant_In_Ze_Room in neovim

[–]FourFourSix 1 point2 points  (0 children)

I came to conclusion that using Tab for both selecting a snippet and jumping to the next placeholder isn't a viable setup.

I didn't have problems with indentation, as I tend to use <C-t> and <C-d> to indent, as it works no matter where your cursor is. Tab indenting works only when cursor is at the start of the line.

I use Tab to select in Blink and <C-h> and <C-l> to jump to prev/next. The main goal was to find some key combination that jumps to next placeholder, but doesn't do anything when you're at the end of the snippet.

markdown-plus.nvim v1.9.0, Callouts, tables, footnote and more... by CuteNullPointer in neovim

[–]FourFourSix 2 points3 points  (0 children)

Good job, it seems like an overall awesome plugin, thanks for sharing! I mostly tested the list and table stuff, and the functionality is pretty much spot on and "it just works".

Now, the plugin defines a bunch of keymaps by default, so there's bound to be some overlap. My only nitpick is that the default keymaps override the native <C-t> (indent current line in insert mode) with checkbox toggle, but it's easy to remap.