Comments (8)
This doesn't work for me but I guess the original issue is resolved, and we can close this issue. I'll comment on the other issue about the tab key issues that I'm having.
from nvim-cmp.
It is not a nvim-cmp's issue.
You should learn vim's key-mapping.
Your configuration is triggered by <Tab>
but you send <Tab>
again with remapping construction. It will cause infinite loop.
You should modify the return vim.fn.feedkeys(T("<Tab>"))
with return vim.fn.feedkeys(T("<Tab>"), 'n')
from nvim-cmp.
Thanks for the quick reply! That solves the hanging issue!
But it doesn't solve the indent problem.
nvim-cmp-tab.mov
Related to this PR: #38
from nvim-cmp.
Hm... I don't use <Tab>
mapping.
I will look,into,it tomorrow
from nvim-cmp.
Thanks! I appreciate it.
from nvim-cmp.
This worked in the past btw, when the configuration used a function callback with args that were core
and fallback
.
["<Tab>"] = cmp.mapping.mode({ "i", "s" }, function(core, fallback)
if vim.fn.pumvisible() == 1 then
vim.fn.feedkeys(T("<C-n>"), "n")
elseif luasnip.expand_or_jumpable() then
vim.fn.feedkeys(T("<Plug>luasnip-expand-or-jump"), "")
elseif not check_backspace() then
cmp.mapping.complete()(core, fallback)
else
fallback()
end
end),
["<S-Tab>"] = cmp.mapping.mode({ "i", "s" }, function(_, fallback)
if vim.fn.pumvisible() == 1 then
vim.fn.feedkeys(T("<C-p>"), "n")
elseif luasnip.jumpable(-1) then
vim.fn.feedkeys(T("<Plug>luasnip-jump-prev"), "")
else
fallback()
end
end),
},
from nvim-cmp.
Will this work?
#21 (comment)
from nvim-cmp.
@kdheepak See the @uga-rosa 's suggestion.
from nvim-cmp.
Related Issues (20)
- Unexpected behavior with cmp.abort() and cmp.close() when autocomplete = false. HOT 1
- 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
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.