[mini.pairs] Filetype dependent indent on <CR> within parentheses?
#2042
-
Contributing guidelines
Module(s)mini.pairs QuestionWhen I press where In this position, when pressing enter, the typical result would be: depending on your tab settings. But in a An indent of only one space is performed and the closing parenthesis is also indented for some reason. Is there something with this plugin that is sensitive to filetype in this way? This only happens with Here is my vim.env.LAZY_STDPATH = ".repro"
load(
vim.fn.system(
"curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"
)
)()
require("lazy.minit").repro({
spec = {
{ "nvim-mini/mini.pairs", version = false, config = true },
},
})You can try this using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
There is nothing filetype dependent in 'mini.pairs' per se. But the I am afraid I can not help you with C filetype per se, but I can indeed reproduce this. The behavior with 'mini.pairs' is the same as |
Beta Was this translation helpful? Give feedback.
There is nothing filetype dependent in 'mini.pairs' per se. But the
<CR>implementation uses the approach that mimics the most robust approach that also respects filetype: pressing<CR>with 'mini.pairs' is basically the same as pressing<CR><C-o>Owithout 'mini.pairs'. Here<C-o>temporarily exits into Normal mode andOinserts an empty line above (usually properly indented; at least with default value of 'indentkeys').I am afraid I can n…