Closed ekkyarmandi closed 10 months ago
I think I already solved the issue.
Just need to change the opts
with config
and an empty function. Like the code below:
return {
{
"mg979/vim-visual-multi",
branch = "master",
config = function() end,
event = "User AstroFile",
}
}
I'm trying to use this plugin inside Nv-chad and I can't for the love of god make it work and even see why it's not active. Only when I add config = function() end
and lazy=false
to the plugin config in lazy it started loading...
@T3sT3ro, I see it has been over 2 months but I am trying to do the same thing inside of Nv-Chad but i cant get the plugin to work/load. Did you ever figure this out?
@SpongeBobWillReignSupreme Try using the following configuration in your .config/nvim/lua/plugins/init.lua
:
return {
-- ...
-- https://github.com/mg979/vim-visual-multi
{
"mg979/vim-visual-multi",
branch = "master",
lazy = false,
config = function() end,
},
-- ...
}
I still don't know what the heck is going on and how to configure it properly. I also noticed that invoking Ctrl+N (default action for opening NvTree) invokes... NvTree instead of visual-multi, but when I use CTRL+Up/Down to add cursor above/below, then from that moment on the Ctrl+N uses the action from visual-multi to add cursor at next word occurrence. I didn't configure my nvim properly yet, because due to the huge amounts of time it takes to bring it to a comfortable state I still mainly use an IDE...
Poor man's solution: choose a different key binding than Ctrl+N for visual-multi. Of course, it shouldn't be occupied already (which dramatically limits the options). I chose Ctrl + \ like so:
{
"mg979/vim-visual-multi",
branch = "master",
enabled = true,
lazy = false,
config = function() end,
init = function()
vim.g.VM_maps = {
["Find Under"] = "<C-\\>"
}
end,
},
Describe the issue:
The plugin works. But I get the
module not found error
on thelazy.nvim
when I restart the nvim. That's weird.I'm using AstroNvim and trying to install the plugin from the
~/.config/nvim/lua/user/plugins/user.lua
. I'm new to Neovim and I want to bring back multi-edit just like what I usually did on VS Code.Does any body know why? Thank you