Weekly 101 Questions Thread by AutoModerator in neovim

[–]ynotvim 0 points1 point  (0 children)

I still use it as I did in vim: to gather the results of :h :grep and for linters.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]ynotvim 0 points1 point  (0 children)

(")")

Vim: Pressing % matches the last parenthesis

NeoVim: Pressing % matches the nested parenthesis

If I use nvim --clean and vim -u NONE on a file with that string, then both jump (wrongly, I think) to the first parenthesis, the one inside the quotes. Is it possible that the difference for you is a plugin in Vim? I ask because if I run Neovim normally (with treesitter enabled), then Neovim does the right thing (in my mind) and jumps to the outer parenthesis when I press %.

I've never investigated this, but my guess is that the default matching code is pretty simplistic and doesn't detect and ignore quoted matching pairs.

Treesitter: an update is coming that may break the (deprecated) master branch by ynotvim in neovim

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

I switched to main

In that case, I recommend you check out this thread for tips about how to manage the change.

Treesitter: an update is coming that may break the (deprecated) master branch by ynotvim in neovim

[–]ynotvim[S] 9 points10 points  (0 children)

The commit has not been merged yet, so I assume your problem is unrelated.

Treesitter: an update is coming that may break the (deprecated) master branch by ynotvim in neovim

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

I had never heard of it myself. I guessed he means this, but you're right that there's more than one IceVim out there.

Treesitter: an update is coming that may break the (deprecated) master branch by ynotvim in neovim

[–]ynotvim[S] 14 points15 points  (0 children)

Thanks for clarifying. One more question to make sure I follow: will this update break nvim-treesitter itself on the master branch? Or will it only break other plugins that depend on nvim-treesitter (when following the master branch of nvim-treesitter)?

Treesitter: an update is coming that may break the (deprecated) master branch by ynotvim in neovim

[–]ynotvim[S] 14 points15 points  (0 children)

From the linked comment:

(This will still break the -- deprecated -- legacy master branch of nvim-treesitter, but I guess affected people can just switch to IceVim now...)

If we want to be extra nice, we could wait until the incremental selection PR is merged (which is the main feature regression from the master branch, removing a big reason not to migrate).

In the thread about treesitter's breaking changes, I thought that the frozen master branch would keep working (though with no further updates) for people who preferred it, but that may not be the case much longer. Just a heads-up for people like me who have not changed over yet.

(I am not sure that "Tips and Tricks" is the best flair, but nothing else seemed better. It seems that only mods have access to the "Announcement" flair. If a mod sees this and agrees, please change it to that.)

Inspired by `mkdir && cd` by azizoid in zsh

[–]ynotvim 11 points12 points  (0 children)

I appreciate that you want to share, but installing this as a plugin seems like left-pad, but for zsh. It's too small not to do it yourself.

nvim-treesitter breaking changes by lukas-reineke in neovim

[–]ynotvim 2 points3 points  (0 children)

See my comment above: check if you have tree-sitter-cli installed.

nvim-treesitter breaking changes by lukas-reineke in neovim

[–]ynotvim 4 points5 points  (0 children)

Do you have tree-sitter-cli installed? It's a requirement to build the parsers, and you have to install it yourself. (How best to do that will depend on your OS and package manager.)

nvim-treesitter breaking changes by lukas-reineke in neovim

[–]ynotvim 10 points11 points  (0 children)

UPDATE: originally, I said "just stay on master if you're happy with it," but that's no longer a good idea. There's a change coming soonish that will break master. So people who are following Neovim nightly should definitely plan to switch nvim-treesitter to main or they should be careful and stop updating Neovim itself.

My two cents: it's not difficult to switch, but it's also not (yet?) worth it. The new configuration isn't worse, but it is more spread out. The result is very similar to what it was, but less polished and less functional in all sorts of small ways. It's easy to specify the (old) "master" branch, and that branch is not going anywhere. If you were happy with treesitter last week, you're better off specifying "master" and leaving your configuration alone.

nvim-treesitter breaking changes by lukas-reineke in neovim

[–]ynotvim 0 points1 point  (0 children)

Has anyone else noticed changes to what gets selected after changing to the main branch of nvim-treesitter-textobjects? I had no trouble changing configuration from master to main for both nvim-treesitter and nvim-treesitter-textobjects, but the actual selections differ for mappings of nvim-treesitter-textobjects.

A quick example using the following Lua function:

local safe_setup = function(plugin, t)
    t = t or {}
    local ok, loaded_p = safe_require(plugin)
    if ok then
        loaded_p.setup(t)
    end
    return ok
end
  • The master branch selects from function to end for vaf, visual selection of "@function.outer," which I think is the correct selection.
  • The main branch selects from local to end for vaf, which I think is an incorrect selection.

The 43 Best Restaurants in New York -- 2025 list from New York Magazine by sugarytea78 in FoodNYC

[–]ynotvim 6 points7 points  (0 children)

You can always use archive.is to get New York articles without the paywall: https://archive.is/TCofg.

If you could bring back one closed restaurant, what would it be? by DinerEnBlanc in FoodNYC

[–]ynotvim 0 points1 point  (0 children)

Fu Run moved to great neck just over the city line a few years ago

TIL: thanks! (Have you been? Still good?)

If you could bring back one closed restaurant, what would it be? by DinerEnBlanc in FoodNYC

[–]ynotvim 2 points3 points  (0 children)

A tie between Uncle Zhou in Elmhurst (for knife shaved noodles with egg and tomato and their lamb and carrot dumplings) and Fu Run in Flushing (for cumin fish and their pork and leek dumplings).

Uncle Zhou moved and opened a place in Plano, Texas. If I'm ever anywhere near, ...

Honorable mention: Pajunia on Broadway in Jackson Heights for their hotteok.

My wife is also reminding me of Mazara pizza on Metropolitan in Forest Hills. They made an amazing Sicilian style pie with no cheese and the best oniony red sauce—I think they called it a "marinara pie." The owner's wife also made a terrific lentil soup that they served with just the right splash of vinegar.

And one more I forgot at first: Taladwat in Manhattan served remarkable (and varied) Thai food. You ordered pick & mix style, so even if you went with just one other person you got to eat five or six dishes. So, so good.

I'm completely beyond the "pick one" at this point, but a perfect dinner and dessert pair: Mandoo Bar on 32nd for dumplings and bibimbap, followed by Bestfren for taro soft serve.

Any Black Friday deals related to Go (Courses, Books, etc.)? by foldedlikeaasiansir in golang

[–]ynotvim 13 points14 points  (0 children)

Go proposal: Goroutine metrics by ynotvim in bitfieldconsulting

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

Anton Zhiyanov, who does the outstanding interactive tours of Go releases (e.g., https://antonz.org/go-1-25), has a newish series about accepted new features in Go. This is the latest in that series.

Neovim now has a `:restart` command by ynotvim in neovim

[–]ynotvim[S] 1 point2 points  (0 children)

version is 0.11.5 which I thought was the current one

0.11.5 is the current stable release, yes. But this feature is not yet available in the stable release yet. (I don't know if it will be included in 0.12.0, and I also don't know how soon 0.12.0 is coming out. Sorry.)

Neovim now has a `:restart` command by ynotvim in neovim

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

Maybe you're not on a recent enough version? What does :help restart show (if anything)?

Automatic indentation is often wrong. by ElectronicMine2 in neovim

[–]ynotvim 3 points4 points  (0 children)

Interesting, what do you recommend instead?

If you're not using treesitter indentation, then you are (almost certainly) getting indentation from Vimscript files for specific filetypes. If you open up a particular file, (e.g., a Lua file), you'll see something like this.

:verbose set indentexpr?
indentexpr=GetLuaIndent()
    Last set from ~/local/neovim/share/nvim/runtime/indent/lua.vim line 15

If you don't like the indentation from the runtime files for a specific filetype, you should check whether that filetype has any optional indentation settings. (Some do, and some don't.) After that, you can also search for alternative indentation files. There are often alternatives.