Gregory Anders

Results 250 comments of Gregory Anders

Drive by note: this is complicated by the fact that Neovim enables filetype autocommands later than Vim does in defaults.vim. The "restore cursor position" autocommand needs to be defined *after*...

Looks like this is because `nvim_parse_cmd` has `count = 0` in the returned table, which when passed to `nvim_cmd` causes the height of the window to be 1.

> Is there a more "semantic" / less obscure name we can use, maybe `TermCmd` or `TermRequest` `TermRequest` is nicely symmetric to `TermResponse` :) In any case I agree this...

Ok I've pushed a few changes. Thanks @glacambre for getting this started and sorry that it's taken almost a year to get merged. I renamed `TermOSC` to `TermRequest` and am...

Changing the TUI’s pwd is (imo) the better solution anyway. OSC 7 for this purpose strikes me as a bit of a hack

Forgive the drive by comment, but any reason not to use `vim.watch` and `vim.poll` instead of `vim._watch.watch` and `vim._watch.poll`? Are these not intended to be used more generally by plugins?

>but that's not entirely true for not depth or depth == 1 since it returns a function and an iterator, which is weird from the user stand point if they...

>That's the thing, not supporting other usages is also not specified in the docs A usage example in the docs would be good to demonstrate that this is how it's...

>I think this should work? It already works, and is consistent with the pattern in the [user manual](https://www.lua.org/manual/5.1/manual.html#2.4.5): > A for statement like > > ```lua > for var_1, ···,...