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

Failed to run config for multicursors.nvim #104

Open
1 task done
ecosse3 opened this issue Oct 4, 2024 · 1 comment
Open
1 task done

Failed to run config for multicursors.nvim #104

ecosse3 opened this issue Oct 4, 2024 · 1 comment

Comments

@ecosse3
Copy link

ecosse3 commented Oct 4, 2024

  • Did you check Readme and existing issues?

Describe the bug
Plugin doesn't work at all. I get the error:

Failed to run config for multicursors.nvim
vim/shared.lua:0: s: expected string, got number (1)

To Reproduce
Steps to reproduce the behavior:

local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'

if not vim.uv.fs_stat(lazypath) then
    vim.fn.system {
        'git',
        'clone',
        '--depth',
        '1',
        '--filter=blob:none',
        '--single-branch',
        'https://github.com/folke/lazy.nvim.git',
        lazypath,
    }
end

vim.opt.runtimepath:prepend(lazypath)
require('lazy').setup({
    "smoka7/multicursors.nvim",
    event = "VeryLazy",
    dependencies = {
      "nvim-treesitter/nvim-treesitter",
      "nvimtools/hydra.nvim",
    },
    opts = {},
    cmd = { 'MCstart', 'MCvisual', 'MCclear', 'MCpattern', 'MCvisualPattern', 'MCunderCursor' },
}, opts)

Expected behavior
Working plugin

Screenshots
image

Nvim version:
NVIM v0.11.0-dev-902+g289380bc4
Build type: RelWithDebInfo
LuaJIT 2.1.1727870382

Checked and there is same issue on:

NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1725453128

Multicursor version:
latest

Additional context
I've tried using smoka7/hydra.nvim plugin instead but there is same issue.

@smoka7
Copy link
Owner

smoka7 commented Oct 11, 2024

There is a fix here nvimtools/hydra.nvim#47 .

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