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

Can't get plugin to work #12

Open
kukushkawi opened this issue Dec 8, 2022 · 1 comment
Open

Can't get plugin to work #12

kukushkawi opened this issue Dec 8, 2022 · 1 comment

Comments

@kukushkawi
Copy link

Hello. I have some problems with getting your plugin to work properly.
Every time I'm pressing Enter, I get this error:

E5108: Error executing lua .../packer/opt/follow-md
-links.nvim/lua/follow-md-links.lua:41: attempt to
index local 'next_node' (a nil value)
stack traceback:
        .../packer/opt/follow-md-links.nvim/lua/fol
low-md-links.lua:41: in function 'get_link_destinat
ion'
        .../packer/opt/follow-md-links.nvim/lua/fol
low-md-links.lua:110: in function 'follow_link'
        [string ":lua"]:1: in main chunk

I've tried updating plugins via Packer, but that didn't change anything; Adding it as external bind in Which-key plugin; Adding it in my keymaps config (as vim.keymap.set('n', '<bs>', ':edit #<cr>', { silent = true })
It works if i use it as a command :edit # while having a link under cursor, but not as a bind.
Sorry, if this is stupid problem.

@jghauser
Copy link
Owner

jghauser commented Jan 7, 2023

Hey, sorry this has taken me so long to get to! Have you been able to sort it out? I can't reproduce it here. Can you give me some more detail about ur setup (e.g. config of plugin, treesitter config) and maybe an example of a file that gives the error? thanks!

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

2 participants