Comments (8)
The reason that newline backspace changed was that sometimes one wants to delete indentation and not activate newline backspace, but if you want old behaviour:
Added back old style newline backspace with the option {bs={indent_ignore=true}}
. (dace596)
from ultimate-autopair.nvim.
Hey, sorry but I believe that it's still not working like before?
from ultimate-autopair.nvim.
Can you give a precise description of what is not working, as I still don't know what the exact problem is?
from ultimate-autopair.nvim.
Sorry for the lack of context, so, the problem is that, I want to newline backspace but, it still doesn't (even on the commit you've provided)
What I mean is:
What I wanted (Before 036b8c1 worked btw)
{
|
}
<BS>
{|}
And what is happening is:
{
|
}
<BS>
{
|
}
Also, it is happening WITH
{
bs = {
indent_ignore = true
}
}
I understand that I haven't explained the situation fully, and I apologize for that.
And, I hope I've explained it fully now
from ultimate-autopair.nvim.
Try updating to branch dace596.
from ultimate-autopair.nvim.
Sorry for the delay but, I've updated to commit dace596, and the issue still persists
from ultimate-autopair.nvim.
Hmm… There might be a different problem, cause I tested with minimal config (and it worked):
The minimal config
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
-- do not remove the colorscheme!
"folke/tokyonight.nvim",
-- add any other pugins here
{
"altermo/ultimate-autopair.nvim",
opts = {
bs = {
enable = true,
indent_ignore = true,
},
},
commit = "dace596",
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
-- add anything else here
vim.opt.termguicolors = true
-- do not remove the colorscheme!
vim.cmd([[colorscheme tokyonight]])
Try:
- Remove
ultimate-autopair.nvim
from lazy install list - Clean lazy (so that
ultimate-autopair.nvim
is completely removed) - Add
ultimate-autopair.nvim
back to lazy install list
from ultimate-autopair.nvim.
Thank you for your help! Your repro did indeed work, and I'm sure the issue was actually on my end. I'm thankful for your patience. Thanks!
from ultimate-autopair.nvim.
Related Issues (20)
- [Bug] Incorrect pair exiting behavior HOT 1
- [BUG] Wrong behavior when deleting asterisk in makdown files HOT 1
- Healthcheck fails saying parser is missing for 'lua' HOT 4
- [Feature Request] Specify pairs by regular expression HOT 3
- Way to prevent autocomplete if Esc is pressed? HOT 16
- Delete comma after pair HOT 6
- Undo mappings in insert mode don't work as expected HOT 3
- [BUG] Installing ultimate-autopair causes luasnip to malfunction HOT 2
- Parenths don't auto close in swift files with swift string interpolation HOT 5
- Feature request: fastwarp for left parenthesis
- Suround vs Surround HOT 2
- Bug: `in_string()` errors in `ftplugin/lua.lua` HOT 4
- [Bug] Pairing in Select mode doesn't work when LSP server loads HOT 3
- [Bug] Enter binding breaks when using `ray-x/lsp_signature.nvim` HOT 2
- Command Mode Inconsistent Behavior HOT 1
- Cannot disable fastwarp HOT 3
- " (double quote) wrongly closed automatically in vim files HOT 2
- [bug] strange fastwarp when there is virtual text HOT 3
- `"` shouldn't be auto-completed when typed after `@` in vimscript or cmdline HOT 4
- how can I autopair < and > only for C header files? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultimate-autopair.nvim.