-
Contributing guidelines
Module(s)mini.operators QuestionI noticed that Here’s the configuration I tried: MiniOperators.setup({
exchange = {
prefix = "gX", -- or `gl`
},
}) However, after setting this up, as you can see in this picture: This prevents me from using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
That's strange. Your setup is working for me. Do you have a duplicate setup? I can reproduce having both require("mini.operators").setup()
require("mini.operators").setup({
exchange = { prefix = "gX" },
}) EDIT: The init.lua below is also working: init.lua---@diagnostic disable: undefined-global
local function setup_deps(path_to_site)
local mini_path = path_to_site .. "pack/deps/start/mini.nvim"
if not vim.uv.fs_stat(mini_path) then
vim.cmd('echo "Installing `mini.nvim`" | redraw')
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/echasnovski/mini.nvim", mini_path })
vim.cmd("packadd mini.nvim | helptags ALL")
vim.cmd('echo "Installed `mini.nvim`" | redraw')
end
require("mini.deps").setup({ path = { package = path_to_site } })
end
setup_deps(vim.fn.stdpath("data") .. "/site/")
vim.g.mapleader = " "
MiniDeps.now(function() require("mini.operators").setup({ exchange = { prefix = "gX" } }) end)
The output of commands |
Beta Was this translation helpful? Give feedback.
That's strange.
Your setup is working for me.
Do you have a duplicate setup? I can reproduce having both
gx
andgX
forexchange
like so:EDIT:
The init.lua below is also working:
init.lua