Ask questions #33
Replies: 122 comments 436 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 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.
-
I have a basic setup of mini.nvim from kickstart.nvim, but I'm trying to fix two things:
|
Beta Was this translation helpful? Give feedback.
-
This is my current setup for
|
Beta Was this translation helpful? Give feedback.
-
This question is not really related to the plugin itself, but I am curious what terminal emulator and font combo was used to create the demo screenshots in the |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
When using mini.icons and the hl-groups what is the correct way to preserve the background when for instance used in a statusline or tabline? |
Beta Was this translation helpful? Give feedback.
-
Hi @echasnovski . It possible to create new shortcut that quickly create new files in |
Beta Was this translation helpful? Give feedback.
-
Using mini.surround, I would love to swap how brackets handle inner edge whitespace:
I'm currently using custom_surroundings = {
['('] = { output = { left = '(', right = ')' } },
....
['>'] = { output = { left = '< ', right = ' >' } },
}, Thanks for the great plugin! Any suggestions are much appreciated. |
Beta Was this translation helpful? Give feedback.
-
Using mini.ai, for example: f(a,b,c(d))
^ cursor here If I type "dia", it correctly deletes "a", while in this case, when the right ")" is in next line: f(a,b,c(d)
) ^ cursor here
it delete "d", can this issue be solved via config? thanks. |
Beta Was this translation helpful? Give feedback.
-
echasnovski (not @ tagging you to avoid totally annoying you for a somewhat "off topic" question 😉 ) But curious as I have become more and more of a nvim config nerd and "personal plugin hacker" and learning more and more about lua and neovim in general, I find myself reaching for vim.schedule() a LOT and typically my first goto rescue attempt if something isn't quite working how I expect ;-) Curious if this is common and you find yourself doing the same? I am a javascript developer so am pretty well versed in the js event loop and async code from that perspective and I believe lua is very similar... but the amount I use vim.schedule() feels kind of "dirty" haha if you know what I mean? Just curious if I am developing bad habits or if this is a fairly common practice when it comes to neovim hacking and vim.schedule really is that magical? Thanks! |
Beta Was this translation helpful? Give feedback.
-
你好,我试着使用none-ls中的null_ls.builtins.completion.luasnip,将snipt集成到原生的补全源中,使用mini.completion的时候,我怎么获取到当前的选择的选项里面结尾是含有~(snipet的结尾都是带 |
Beta Was this translation helpful? Give feedback.
-
I dynamically switch git worktrees withing one neovim instance often (using a fork of this plugin). I noticed I can easily copy files between different instances of What does not seem to be possible, though, is to jump between bookmarks across worktrees quickly, without closing the current Alternatively, what would be even quicker is having multiple |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Happy new year 2025 @echasnovski !! thank you again for your work on mini.nvim, you've made my Neovim journey a lot more fun! :) I can't manage to have https://github.com/kristijanhusak/vim-dadbod-completion working with mini.completion, is it possible to configure them together? |
Beta Was this translation helpful? Give feedback.
-
With surprisingly heavy heart I am going to close this discussion. Exactly three years after it was created. Two main reasons for this decision are that it became overwhelmingly big and it is not as easily searchable as separate questions (which can have dedicated module labels attached to them). Now the only preferred way to ask a question about configuration and usage of 'mini.nvim' is to create a separate "Q&A" discussion. Thank you all for three years of curiosity about 'mini.nvim'! |
Beta Was this translation helpful? Give feedback.
-
This discussion is closed and locked for reasons described in this comment. Please create a separate "Q&A" discussion to ask a question.
Beta Was this translation helpful? Give feedback.
All reactions