Ask questions #33
Replies: 108 comments 387 replies
-
Could you add docs on how I can use mini.pairs or mini.surround with completion plugins such as coq_nvim or cmp-nvim? The windwp/nvim-autopairs plugin provides instructions for using it with these plugins (see https://github.com/windwp/nvim-autopairs#mapping-cr). Is there any way to do this with mini.pairs and mini.surround? Thanks! |
Beta Was this translation helpful? Give feedback.
-
How to disable few
I don't want find_left, highlight, update_n_lines.. commands. I wanted to free |
Beta Was this translation helpful? Give feedback.
-
Trying to set up on Windows 10 with packer.nvim and each time I try to use the commands, i.e. nvim v0.5.0 init.vim
plugins.lua
Any ideas what I need to do would be gratefully received! Thanks. |
Beta Was this translation helpful? Give feedback.
-
How to make visual selection dot-repeatable with
if I select some text in visual mode and then |
Beta Was this translation helpful? Give feedback.
-
How to repeat jump
{
mappings = {
...
repeat_jump = ';',
}
} I've quickly looked through jump.lua and it doesn't look like there is such option or does it 🤷 ?) |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for an amazing plugin. Really appreciate the effort put into documenting everything. What is the easiest way to map custom_textobjects = {
c = gen_spec.function_call({ name_pattern = '[%w_%.]' }),
f = spec_treesitter({
a = '@function.outer',
i = '@function.inner',
}),
}, |
Beta Was this translation helpful? Give feedback.
-
Hi There Again, I am currently using Is there any plan to add block level commenting anytime in the future or it will never be supported. |
Beta Was this translation helpful? Give feedback.
-
Hi! Thanks for a great toolkit. mini.surround question here: Is it possible to surround en element (or by motion) with function call? Based on the readme I'd think I can do something like:
But I can't really figure this out. |
Beta Was this translation helpful? Give feedback.
-
👋 hi @echasnovski; LOVE your work and plugins. Question regarding mini.pairs; I'm looking to move to mini.pairs instead of nvim-autopairs; one thing I'd love to ensure is possible, is the ability to handle endwise matches (aka, lua's Hopefully this isn't too far out of the realm of possibility (oh, and of course, compatibility with nvim-cmcp). Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi @echasnovski, I'm wondering why |
Beta Was this translation helpful? Give feedback.
-
Is there a way to have transparent background in mini.starter ? |
Beta Was this translation helpful? Give feedback.
-
Hi! I've recently started using mini.comment instead of tpope implementation. The one thing annoying sometimes, is that when I'm trying to comment an entire paragraph with nvim-comment solved this by adding an option to ignore empty lines. Is this something that mini.comment might also have someday? |
Beta Was this translation helpful? Give feedback.
-
It is possible to set rules for mini.pairs like nvim-autopairs does? E.g. I probably don't expect a pair of quotes to be inserted when the cursor is right before a word ( |
Beta Was this translation helpful? Give feedback.
-
The only "rules" 'mini.pairs' supports is conditioning on cursor's neighborhood. So you can set up to insert pair only if cursor's neighborhood matches some two-character You case is thus can be supported with this setup: require('mini.pairs').setup({
mappings = {
['"'] = { neigh_pattern = '[^\\]%W' },
}
}) Here it will insert |
Beta Was this translation helpful? Give feedback.
-
Dumb question, but how do I get mini.sessions to work? I've installed the module along with starter. Do I have to type in |
Beta Was this translation helpful? Give feedback.
-
I'm trying to completely replace my |
Beta Was this translation helpful? Give feedback.
-
Hello @echasnovski . I just wonder is possible to move mini.tabline to the right if neotree open? local manager = require("neo-tree.sources.manager")
local renderer = require("neo-tree.ui.renderer")
local state = manager.get_state("filesystem")
local neotree_open = renderer.window_exists(state)
if neotree_open == true then |
Beta Was this translation helpful? Give feedback.
-
What is the best way to use mini.completion with copilot? mini clobbers copilot unless it's after a space. If I start to type, I see the copilot suggestion for second until the completion dropdown opens. |
Beta Was this translation helpful? Give feedback.
-
What's the difference in how mini.hues initially handles chroma compared to how mini.colors handles it? Consider the following: hues.setup({
background = "#14161B",
foreground = base_colors.foreground,
saturation = vim.o.background == 'dark' and 'medium' or 'high',
accent = 'bg',
})
vim.g.colors_name = 'randomhue' When changing chroma directly in the mini.hues source, for example, from 8 to 5, and 16 to 15: - local chroma = ({ low = 4, medium = 8, high = 16 })[saturation]
+ local chroma = ({ low = 4, medium = 5, high = 15 })[saturation] We get: But changing it with chan_set from mini.colors to the same value: -- using randomhue
local cs = require("mini.colors").get_colorscheme()
cs:chan_set('chroma', 5):apply() We get: Which is unexpected |
Beta Was this translation helpful? Give feedback.
-
Is it possible to disable the timeout functionality in As an aside, my ideal setup would be to have hitting |
Beta Was this translation helpful? Give feedback.
-
The new mark feature in mini.files is not valid across sessions. The defined mark such as |
Beta Was this translation helpful? Give feedback.
-
I can't thank you enough for every work you had done til now <3. |
Beta Was this translation helpful? Give feedback.
-
No question ! But happy birthday @echasnovski |
Beta Was this translation helpful? Give feedback.
-
In mini.pick, is there a way to filter the files by extension or by a certain pattern? E.g. use MiniPick files on TypeScript files only |
Beta Was this translation helpful? Give feedback.
-
Finally i can made it work. Hey it look like a little complicated. But it work now . The code is not good enough. But at least it work 😂 😂 😂 Code {
"echasnovski/mini.pick",
version = "*",
opts = {
mappings = {
choose = "<CR>",
choose_in_vsplit = "<C-l>",
choose_in_split = "<C-j>",
toggle_preview = "",
execute = {
char = '<Tab>',
func = function()
local entries = require("mini.pick").get_picker_matches()
if entries and entries.all and entries.current_ind then
local selected_entry = entries.all[entries.current_ind]
if selected_entry.fs_type == "directory" then
vim.cmd(":Pick explorer cwd='" .. selected_entry.path .. "'")
else
require("mini.pick").default_choose(selected_entry.path)
end
end
end
}
},
}
},
Thanks you so much for idea. Need someone help me optimize/refracting a code because it look like a mess. haha |
Beta Was this translation helpful? Give feedback.
-
Hi @echasnovski , i want to ask how can i turn off completely the right bottom of
My current Neovim versionNVIM v0.10.2
Build type: Release
LuaJIT 2.1.1727870382
Run "nvim -V1 -v" for more info |
Beta Was this translation helpful? Give feedback.
-
General question... for things like plugin specs with lazy I like to do the following: require('lazy.types')
---@type LazyPluginSpec
local M = {
'some/plugin',
...
} To get the type annotations through the plugin spec. Is there a way to similarly get the types for mini modules to get the types for setup config options? So when I require a mini module like the following, I get lsp completions and hover info for the available setup options: require('mini.files').setup({
content = {
prefix = function() end
...
},
...
}) Thanks! |
Beta Was this translation helpful? Give feedback.
-
For mini.sessions is it known / expected that autoread will not work if you lazyload the mini plugin? I have it set to VeryLazy event and cannot get autoread to work. |
Beta Was this translation helpful? Give feedback.
-
First of all, thank you for your great and incredible work on those plugins ! mini.pick question : Here is my non working code trying to add a local keymap : vim.api.nvim_create_autocmd("User", {
pattern = "MiniPickStart",
callback = function(event)
vim.keymap.set({ "n", "i" }, "<Right>", "<CR>", { buffer = event.buf, desc = "(mini.pick) Choose" })
end,
}) How can i fix it ? Thanks! |
Beta Was this translation helpful? Give feedback.
-
I am a fan of both When coding in Python, I am often found turning text like this... var: int, ...into this... var: Optional[int], I always find myself typing Is there a simpler way to approach this using |
Beta Was this translation helpful? Give feedback.
-
Feel free to ask questions about
mini.nvim
which are not really suitable for an issue. Like "How do I setup ...?", etc.Another approach is to create a separate discussion in Q&A category, if you have trouble working with this particular discussion (as it is quite populated already). This approach might be even more preferable as it will allow filtering questions by module.
Beta Was this translation helpful? Give feedback.
All reactions