-
Notifications
You must be signed in to change notification settings - Fork 8
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 #42
Comments
can you give the output of |
Yes sure thing, here's a screencap to demonstrate:
|
Can you send the hydra you're using, I can't reproduce this with my windows hydra, or my options hydra, both of which create floating hints. |
Yep, definitely. Actually, I was able to reproduce the syntax highlighting issue without having any other plugins installed... here's the entire config:
files-- init.lua
-- Install lazy
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.uv.fs_stat(lazypath) then
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'--single-branch',
'https://github.com/folke/lazy.nvim.git',
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- Setup plugins
require('lazy').setup({
{
'nvimtools/hydra.nvim',
config = function()
local hydra = require('hydra')
hydra({
name = 'Quickfix navigation',
config = {
invoke_on_body = true,
hint = {
type = 'window',
},
},
mode = 'n',
body = '<space>HQ',
heads = {
{
'n',
function()
vim.cmd('silent! cnext')
end,
},
{
'p',
function()
vim.cmd('silent! cprevious')
end,
},
},
})
end,
},
}) -- lazy-lock.json
{
"hydra.nvim": { "branch": "main", "commit": "3ced42c0b6a6c85583ff0f221635a7f4c1ab0dd0" },
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" }
} |
I'm unable to reproduce with the latest commit from main, is there anything keeping you from updating the plugin? screen_cap.mp4 |
Aghh sorry, I didn't realize I was on an older version... i assumed that when I changed from using the original repo to the fork that lazy would pull the latest version but I guess as long as the commit sha in my It does seem the latest version works fine for the minimal example I gave but I still see the issues with my main configuration with all other plugins, I'll see if I can produce another minimal example with the latest version of |
Hey there, I was hoping to bring some attention to an existing issue in the original repo:
It seems that activating a hydra with
config.hint.type = 'window'
seems to break treesitter integration somehow.Setting any other kind of
config.hint.type
window luckily avoids the problem.I can't seem to find any related error logs (via
:messages
or:LspInfo
/:LspLog
). The behaviour I see is:a. as I make edits, all my tree-sitter based plugins no longer seem to work (syntax highlighting on edited tokens breaks, and diagnostics etc don't pop up)
a. The opened file has no syntax highlighting
b.
:LspInfo
shows the old language server still running, but does not attach to the new bufferI apologize for the lack of details, happy to provide a minimal reproducible example if needed. I will also try to dig through the code when I have some more time to try and understand the root cause. Thanks.
The text was updated successfully, but these errors were encountered: