Steven Sojka

Results 82 comments of Steven Sojka

It looks like it's calling it with the constructor instead of the instance. I'll fix this soon.

Is this what you mean: ``` js interface Person { name: Name; isHuman: boolean; } interface Name { firstName: string; lastName: string; } let person: Person = { name: {...

I see what you are saying now. You want to do this in normal mode and not while in insert mode correct?

It won't give you the interface structure, it will just give you the interface name or type of person. The only way to get the structure is if you got...

@theHamsta What's the main change in the algorithm? Is there any downside compared to the current implementation?

Awesome! Thank you for that rundown. This will indeed be much faster. Maybe I'll be able to turn back on reference highlighting....

So once this goes in we can update the refactor module to use this api correct?

Might be a good idea to just deprecate the other api and remove it when the others are migrated. On Fri, Apr 2, 2021, 5:40 AM Thomas Vigouroux ***@***.***> wrote:...

@theHamsta You can get the language tree for a range by calling ``` local parser = vim.treesitter.get_parser(bufnr) local cursor = vim.api.nvim_win_get_cursor(0) local parser_at_range = parser:language_for_range({cursor[1] - 1, cursor[2], cursor[1] -...

Yeah I think the simplest thing is to add the parent as an argument to the language tree options. That way we can have a parent method that returns the...