Skip to content
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

Error on uncomment #187

Open
yuntan opened this issue Aug 4, 2023 · 1 comment
Open

Error on uncomment #187

yuntan opened this issue Aug 4, 2023 · 1 comment

Comments

@yuntan
Copy link

yuntan commented Aug 4, 2023

Following error occurred when uncommenting lines.

[Vim(if):E5108: Error executing lua /Users/yuto/.local/share/nvim/plugged/caw.vim/lua/caw.lua:26: attempt to index field 'hl_map' (a nil val
ue)<00>stack traceback:<00><09>/Users/yuto/.local/share/nvim/plugged/caw.vim/lua/caw.lua:26: in function 'has_syntax'<00><09>[string "luaeva
l()"]:1: in main chunk]::[function caw#keymapping_stub[78]..66[11]..71[2]..68[2]..58[4]..69, line 9]

sample code:

// set ft=typescript
    const timer = setInterval(() => {
      if (!replayRef.current?.contentWindow) {return;}
      // replayRef.current?.contentWindow?.addEventListener("message", (ev) => {
      //   if (ev.origin === `${location.protocol}//${location.host}`) {
      //     console.log(ev.data);
      //     window.postMessage(ev.data, "*");
      //   }
      // });
      clearInterval(timer);
    }, 100);
スクリーンショット 2023-08-04 19 37 27

neovim: v0.9.1

@yuntan
Copy link
Author

yuntan commented Aug 4, 2023

#185 fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant