-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Activating hint floating window crashes treesitter #104
Comments
Can confirm this is happening to me. |
I ended up just removing the hint floating window as a workaround for now |
Confirmed breaks on neovim 0.10+ |
Still happening, are there any plan for a fix for this issue ? |
@Greesb this repo is no longer maintained from what i can tell, i created a copy of this issue in the community maintained fork here. if you are able to create a minimal reproducible example there i think it would help debugging. i wasn't able to produce one unfortunately (at least not consistently...). |
Yeah i saw your fork afterwards, with the issue already fixed so i now use the fork instead. Thanks! |
ah, just to clarify i haven't contributed to the fork, i just created a copy of this issue in that repo. I still run into treesitter issues in the fork, but i'm glad to hear it's working for you! |
It started happening since a recent update it seems, it took me quite a while to figure out why hydra started crashing my treesitter, as I've figured out, having a float hint window appear was what crashed it.
steps to reproduce:
this is my treesitter config:
-- Treesitter
return {
{
"nvim-treesitter/nvim-treesitter",
dependencies = 'nvim-treesitter/nvim-treesitter-textobjects',
version = false, -- last release is way too old and doesn't work on Windows
build = ":TSUpdate",
event = 'VeryLazy',
init = function(plugin)
require("lazy.core.loader").add_to_rtp(plugin)
require("nvim-treesitter.query_predicates")
end,
cmd = { "TSUpdateSync", "TSUpdate", "TSInstall" },
keys = {
{ "", desc = "Increment selection" },
{ "", desc = "Decrement selection", mode = "x" },
},
}
}
this was the hydra config:
return {
'anuvyklack/hydra.nvim',
dependencies = {
'nvim-treesitter/nvim-treesitter',
'nvim-treesitter/nvim-treesitter-textobjects',
},
config = function()
local Hydra = require('hydra')
--
--
local hint = [[
f: Next Function Body c: Next Class Start
F: Prev Function Body C: Prev Class Start
?: Next if() g: Prev Function Def
r: Next return R: Prev return
v: Next Attribute V: Prev Attribute
p: Next Parameter P: Prev Parameter
K: Prev Block J: Next Block
=: Assignment
q: Quit
]]
Hydra({
end,
}
The text was updated successfully, but these errors were encountered: