Code Monkey home page Code Monkey logo

Comments (4)

Dynge avatar Dynge commented on July 30, 2024 1

Can confirm as well that if i accept the rename while in insert mode and ghost_text is showing, then the buffer is gone when reaching this code.

It works consistently if i add the following check as suggested by @Shougo:

  if vim.fn.bufexists(self.extmark_buf) == 1 then
      vim.api.nvim_buf_del_extmark(self.extmark_buf, ghost_text_view.ns, self.extmark_id)
  end

from nvim-cmp.

cyaconi avatar cyaconi commented on July 30, 2024

I'm getting this error too. It occurs occasionally when I refactor code with the Lspsaga Rename command, but not always.
I have not found a pattern I can replicate, if I do, I will post it here.

from nvim-cmp.

Shougo avatar Shougo commented on July 30, 2024

Hm. I think the buffer is already removed.
buffer id check is needed.

from nvim-cmp.

JosefLitos avatar JosefLitos commented on July 30, 2024

I make it happen most often when renaming something. I replaced the vim.ui.input with something that creates a floating buffer to input the text into and disappears on enter pressed. Maybe the mapping somehow (because only one mapping should be active) collides with cmp?

Edit: seems to happen when I'm in insert mode and close the buffer while there could be suggestions available.

from nvim-cmp.

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.