Giter VIP home page Giter VIP logo

Comments (8)

altermo avatar altermo commented on August 25, 2024

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.

asyncedd avatar asyncedd commented on August 25, 2024

Hey, sorry but I believe that it's still not working like before?

from ultimate-autopair.nvim.

altermo avatar altermo commented on August 25, 2024

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.

asyncedd avatar asyncedd commented on August 25, 2024

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.

altermo avatar altermo commented on August 25, 2024

Try updating to branch dace596.

from ultimate-autopair.nvim.

asyncedd avatar asyncedd commented on August 25, 2024

Sorry for the delay but, I've updated to commit dace596, and the issue still persists

from ultimate-autopair.nvim.

altermo avatar altermo commented on August 25, 2024

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:

  1. Remove ultimate-autopair.nvim from lazy install list
  2. Clean lazy (so that ultimate-autopair.nvim is completely removed)
  3. Add ultimate-autopair.nvim back to lazy install list

from ultimate-autopair.nvim.

asyncedd avatar asyncedd commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.