[Neotab] Add, update CMP mapping to be compatible
This commit is contained in:
@@ -56,12 +56,10 @@ return {
|
||||
["<Tab>"] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = true })
|
||||
elseif require("luasnip").expandable() then
|
||||
-- Expands snippet if possible
|
||||
require("luasnip").expand()
|
||||
else
|
||||
-- Otherwise, fallback (insert a tab character)
|
||||
fallback()
|
||||
require("neotab").tabout()
|
||||
-- fallback()
|
||||
end
|
||||
end, { "i", "s" }),
|
||||
|
||||
|
||||
7
nvim/lua/plugins/util/neotab.lua
Normal file
7
nvim/lua/plugins/util/neotab.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
"kawre/neotab.nvim",
|
||||
event = "InsertEnter",
|
||||
opts = {
|
||||
tabkey = "",
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user