You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems we have some integration bug between this parser and iTerm2.
After installilng this parser hyperlinks get a 2nd (dashed) underline and it looks quite weird:
notes:
In iTerm2 "Underline OSC 8 hyperlinks" is already disabled. This dashed underline shows up only in neovim w/ this parser installed.
This bug doesn't happen when using other terminals like Kitty.
Any idea how to disable this 2nd (dashed) underline?
As a workaround I'm disabling the parser for markdown files but this isn't ideal.
Nvim v0.11.0-dev-1028+g6dad1f9f1
iTerm 3.5.10
Thanks.
Steps To Reproduce/Bad Parse Tree
install markdown + this parser
open a MD file
To to a line with hyperlinks
You should see double underline
Expected Behavior/Parse Tree
No dobule underline (specially the dashed one)
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"nvim-treesitter/nvim-treesitter",
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the listed parsers MUST always be installed)ensure_installed= { "markdown", "markdown_inline" },
-- Install parsers synchronously (only applied to `ensure_installed`)sync_install=false,
-- Automatically install missing parsers when entering buffer-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locallyauto_install=true,
---- If you need to change the installation directory of the parsers (see -> Advanced Setup)-- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!highlight= {
enable=true,
-- NOTE: these are the names of the parsers and not the filetype. (for example if you want to-- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is-- the name of the parser)-- list of language that will be disabled-- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files
},
}
The text was updated successfully, but these errors were encountered:
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)tree-sitter 0.25.0 (18e4a2405b52ecd3cb9aefdd05d6554e76823473)
Describe the bug
It seems we have some integration bug between this parser and iTerm2.
After installilng this parser hyperlinks get a 2nd (dashed) underline and it looks quite weird:
notes:
Any idea how to disable this 2nd (dashed) underline?
As a workaround I'm disabling the parser for markdown files but this isn't ideal.
Nvim
v0.11.0-dev-1028+g6dad1f9f1
iTerm
3.5.10
Thanks.
Steps To Reproduce/Bad Parse Tree
Expected Behavior/Parse Tree
No dobule underline (specially the dashed one)
Repro
The text was updated successfully, but these errors were encountered: