Comments (4)
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.
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.
Hm. I think the buffer is already removed.
buffer id check is needed.
from nvim-cmp.
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)
- Minimum number of chars for completion
- Using Semantic Versioning releases HOT 2
- Icons are not displayed correctly
- cmp don't work even my config are seem to be correct HOT 2
- Hitting CR confirm selection on cmdline weird redraw on neovim 0.10 HOT 1
- attempt to call local 'fn' (a table value) HOT 7
- Ghost Text Errors HOT 1
- feature request: documentation treesitter syntax highlight like `vim.lsp.buf.signature_help()` in nvim 0.10
- Some times vim_item.kind is nil
- snippet getting confirm and not preselect when doing cmp.select_next_item HOT 5
- cmp-omni listed under unavailable source names HOT 8
- ":%normal Itest" executes slowly when there are many rows
- Better documentation around fuzzy and partial matching options HOT 1
- vim.tbl_add_reverse_lookup is deprecated HOT 4
- please make the lowest sponsoring tier as low as $2 HOT 1
- Completion for tailwind language server has some delay, but it is works fine in other programming languages HOT 2
- nvim_get_option_value calls break compatibility with neovim 0.7
- Hover documentation border will not work HOT 4
- auto completion change to manual completion occasionally HOT 2
- error when using completion with gopls language server in neovim 0.10.0
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 nvim-cmp.