Comments (1)
I don't know if this is related to this issue, but it fits the title I guess, but this issue from supermaven-nvim seems to have a problem with built-in lsp completion.
From what I've been testing (videos in the issue) the main difference with nvim-cmp is:
nvim-cmp
when completing triggers:
# nvim-cmp
InsertCharPre
TextChangedI
InsertCharPre
TextChangedI
InsertCharPre
TextChangedI
InsertCharPre
InsertCharPre
InsertCharPre
InsertCharPre
InsertCharPre
InsertCharPre
InsertCharPre
TextChangedI
built-in
when completing triggers:
# vim.lsp.completion
InsertCharPre
TextChangedI
CompleteDone
CompleteChanged
TextChangedP
CompleteChanged
TextChangedP
CompleteChanged
TextChangedP
CompleteDone
Logs taken after video demo
built-in_vs_nvim-cmp.mp4
Logged out like:
vim.api.nvim_create_autocmd({ "InsertChange", "InsertCharPre", "CompleteDone", "CompleteChanged", "TextChangedP", "TextChangedI", "TextChanged" }, {
pattern = "*",
group = M.augroup, -- ("supermaven", { clear = true }) for reference
callback = function(event)
if string.match(event.event, "Complete") then
print(event.event)
end
if string.match(event.event, "Insert") then
print(event.event)
end
if string.match(event.event, "TextChanged") then
print(event.event)
end
end,
})
And when writing with vim.lsp.completion
triggered when using <C-x><C-o>
it will behave the same but disables extmark
for some reason, thus not getting the "ghost text" from the plugin. Same as you can see in the video if cycling through built-in
completion.
Note
Tested both in v0.10.0
and nightly
in MacOS 14.5 (23F79) in a tmux session in wezterm.
from neovim.
Related Issues (20)
- LSP client should be able to handle snippets that use $0 as a tabstop HOT 6
- `vim._with()` does not properly restore global-local options HOT 3
- signcolumn="yes" + cursorline results in line being visually indented backwards when going from unindented line to indented line HOT 2
- "autocmd BufRead" not working when "nvim a.lua" HOT 3
- Swapfile message (E325) doesn't use the default colorscheme HOT 1
- Incomplete Documentation for `vim.diagnostic.open_float` Options HOT 3
- Which plugins use :UpdateRemotePlugins ? HOT 5
- Cmake parser code is bad HOT 8
- Online doc strange highlights and offset display HOT 1
- Don't send "no information available" on `vim.lsp.buf.hover` if at least one attached server has information HOT 1
- Nightly release tsserver omnifunc doesn't complete partial identifier
- Nightly release: tsserver wrong autoimports with multiline imports HOT 5
- Built-in LSP completion not filtering on label HOT 2
- In the old version of glibc and O2 is enabled, replacing the strncmp argument with a macro will cause the compilation to fail HOT 14
- send alt-x keycodes to vim.fn.chansend() HOT 5
- Error opening Astro files from tree HOT 5
- [LSP Completion] - dot character remains in completion results HOT 1
- :checkhealth reports error about providers HOT 1
- Spurious E506, E207 with files in unwritable directories HOT 2
- Restoring a `User{N}` highlight inside an item group causes the whole item group to disappear HOT 5
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 neovim.