Ask questions #33
Replies: 86 comments 305 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 having trouble understanding how the cursor's position affects the indentation scope that is displayed. Despite trying various border settings like "both," "top," and "none," and reviewing the help page, I'm still unclear about how it works. For instance, as shown in the screenshot below, when the cursor is on line #32, I expect the visual indentation to already highlight the scope of However, when I move the cursor down to line #33, the visual indentation then displays what I anticipated. |
Beta Was this translation helpful? Give feedback.
-
I am using the I tried switching to I tried to search for an issue similar to this nvim-telescope/telescope.nvim#409 to open Mini.Pick in normal mode but could not find it. |
Beta Was this translation helpful? Give feedback.
-
How do i show the indent line for entire file not just the block where the cursor is? |
Beta Was this translation helpful? Give feedback.
-
I would like to try setting up robust support for tags within jsx/tsx files in mini.surround and mini.ai. My motivation is that I very frequently use surround to e.g. replace the parent HTML element / React component with another one, add a new element wrapping an existing one etc. Here is a specific, but simplified, example of an issue I encounter with mini.surround. Let's say I want to replace the div wrapping the two inner divs with a different element: Using Using As will using I am aware of the reply to this discussion as well as these three issues regarding nested tags. The recommendation is to go with a tree-sitter based approach. Could I ask for a little help setting up the mini.surround and mini.ai config following that advice? Based on the mini.surround and mini.ai documentation (btw. is it intentional that one is Mini.surround
Mini.ai
I tried specifying Here's an If I understood the documentation correctly then the two most common cases should be:
How would I accurately represent this in |
Beta Was this translation helpful? Give feedback.
-
recently updated to neovim 0.10 and it seems to have broken/changed how mini.hipatterns works for me. now it only highlights TODO and NOTE, the letters not a background.
here's the link to my nvim config in case it helps to solve the issue. I read the Help for |
Beta Was this translation helpful? Give feedback.
-
Hi, I have a question regarding mini.sessions. Let me give some context first. Let's assume we have two sessions, each has its own working directory, different from each other. Then I open nvim without any parameters from the third directory and let it load the last session. I can select and open files in the directory the session associated with using So my question would be is it possible to change cwd of the session when switching sessions? Thank you in advance. Now I'm trying to migrate as many of my plugins to mini ones as possible. I really like them, thank you for your efforts and sharing. |
Beta Was this translation helpful? Give feedback.
-
With mini.pairs, how can I configure it to only open if its not next to other characters? I'm often adding missing quotes/brackets and it gets annoying to delete the closing pair. I tried neigh_pattern with |
Beta Was this translation helpful? Give feedback.
-
@echasnovski Hey! |
Beta Was this translation helpful? Give feedback.
-
Hi, I have a problem using mini.deps, when I put "mason.nvim", "nvim-cmp", and "nvim-lspconfig" into MiniDeps.later for initialization, neovim always fails to connect to the LSP for the first file opened. LspInfo outputs: "0 client(s) attached to this buffer". But when I switching to other files LSP works fine, this is the minimal configuration,
|
Beta Was this translation helpful? Give feedback.
-
Hello / Is there an appropriate approach to instruct hues to handle tokens differently? For example, I'd like to highlight Crude example with Comment and SpecialComment in bright color: e.g. |
Beta Was this translation helpful? Give feedback.
-
Hey!
another plugin which doesn't work is
Should I open issue in their repos or something wrong with my config for |
Beta Was this translation helpful? Give feedback.
-
Can I invoke ‘mini.completion‘ with trigger? I like to manually invoke different completion sources with different keybinds. |
Beta Was this translation helpful? Give feedback.
-
Does installing Each of the module's READMEs that I've looked at so far says it "can be installed as part of 'mini.nvim' library (recommended) or as a standalone Git repository." What is the basis of the recommendation of "as part of 'mini.nvim' library? |
Beta Was this translation helpful? Give feedback.
-
EDIT: the problem is the curly braces that isolate the reference to mini.nvim; the fix is to remove them.I've done something stupid that I'm not seeing. Using lazy.nvim, my
This is line 67 of plugin.lua: |
Beta Was this translation helpful? Give feedback.
-
Is there a way to select inside/around comment with |
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