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

Bug: MkdnCreateLinkFromClipboard, attempt to index field ' links' (a nil value) #255

Open
Oneechan69 opened this issue Oct 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Oneechan69
Copy link

Oneechan69 commented Oct 4, 2024

Bug description
When I visually select a word and try either the keybinding or the command :MkdnCreateLinkFromClipboard, I get this error:

Error executing Lua callback: ....local/share/nvim/lazy/mkdnflow.nvim/plugin/mkdnflow.lua:71: attempt to index field '
links' (a nil value)
stack traceback:
....local/share/nvim/lazy/mkdnflow.nvim/plugin/mkdnflow.lua:71: in function ‹....local/share/nvim/lazy/mkdnflo
w.nvim/plugin/mkdnflow.lua:69> Remino
Press ENTER or type command to continue

Reproduction steps
Straightforward, open a markdown file, make a visual selection and do the command: :MkdnCreateLinkFromClipboard.

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable", -- latest stable release
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
  {
    'jakewvincent/mkdnflow.nvim',
  },
})

Context
(Please complete the following information):

  • OS: macOS 15.1 Beta
  • Neovim version: NVIM v0.10.1 Build type: Release LuaJIT 2.1.1725453128
  • Package manager: Lazy
@Oneechan69 Oneechan69 added the bug Something isn't working label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants