smoka7 / multicursors.nvim

A multi cursor plugin for Neovim.
MIT License
479 stars 15 forks source link

Failed to run config for multicursors.nvim #104

Open ecosse3 opened 2 weeks ago

ecosse3 commented 2 weeks ago

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 commented 1 week ago

There is a fix here https://github.com/nvimtools/hydra.nvim/pull/47 .