Closed scheatkode closed 1 year ago
Sorry.. I see why this happens. Thanks for the fix!
This is introduced in #363
No worries. Thank you for your time and quick response !
Hi @scheatkode, I think some other people still experience the problem with detaching keymaps, so I think fundamentally something is broken. #368 changes the detaching logic completely, and if you don't mind can you test if it works for you as well? I appreciate your time!
Describe the bug An error occurs on sourcing a
Session.vim
file.To Reproduce Steps to reproduce the behavior:
:mksession
:source Session.vim
Expected behavior No error.
Output of
:checkhealth nvim-treesitter
nvim-treesitter: require("nvim-treesitter.health").check() ======================================================================== ## Installation - OK: `tree-sitter` found 0.20.7 (parser generator, only needed for :TSInstallFromGrammar) - OK: `node` found v18.13.0 (only needed for :TSInstallFromGrammar) - OK: `git` executable found. - OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" } Version: cc (GCC) 12.2.0 - OK: Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI. ## OS Info: { machine = "x86_64", release = "6.1.5-arch2-1", sysname = "Linux", version = "#1 SMP PREEMPT_DYNAMIC Thu, 12 Jan 2023 22:42:33 +0000" } ## Parser/Features H L F I J - markdown ✓ . ✓ . ✓ - norg . . . . . - lua ✓ ✓ ✓ ✓ ✓ - bash ✓ ✓ ✓ . ✓ - sql ✓ . . . ✓ - make ✓ . ✓ . ✓ - rust ✓ ✓ ✓ ✓ ✓ - css ✓ . ✓ ✓ ✓ - html ✓ ✓ ✓ ✓ ✓ - javascript ✓ ✓ ✓ ✓ ✓ - jsonc ✓ ✓ ✓ ✓ ✓ - scss ✓ . ✓ ✓ . - svelte ✓ . ✓ ✓ ✓ - typescript ✓ ✓ ✓ ✓ ✓ - yaml ✓ ✓ ✓ ✓ ✓ - prisma ✓ . . . . - gitattributes ✓ . . . ✓ - cpp ✓ ✓ ✓ ✓ ✓ - jq ✓ . . . ✓ - go ✓ ✓ ✓ ✓ ✓ - help ✓ . . . ✓ - query ✓ ✓ ✓ ✓ ✓ - hcl ✓ . ✓ ✓ ✓ - comment ✓ . . . . - http ✓ . . . ✓ - awk ✓ . . . ✓ - json ✓ ✓ ✓ ✓ . - git_rebase ✓ . . . ✓ - markdown_inline ✓ . . . ✓ - gitignore ✓ . . . . - regex ✓ . . . . - gitcommit ✓ . . . ✓ - jsonnet ✓ . . . . - json5 ✓ . . . ✓ - gowork ✓ . . . ✓ - jsdoc ✓ . . . . - diff ✓ . . . . - toml ✓ ✓ ✓ ✓ ✓ - dockerfile ✓ . . . ✓ - tsx ✓ ✓ ✓ ✓ ✓ - vue ✓ . ✓ ✓ ✓ - gomod ✓ . . . ✓ - python ✓ ✓ ✓ ✓ ✓ - vim ✓ ✓ ✓ . ✓ Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang}
Output of
nvim --version
Additional context Here's the error message:
Below is a quick fix to resolve the issue. Even if this is easily fixable, I'm not confident enough to open a PR since I'm not familiar with the codebase, therefore I'm not sure this is the right/preferred way of handling it.