doc: readme: use import for cmp example (#115)
This commit is contained in:
@@ -147,8 +147,8 @@ cmp.setup {
|
|||||||
-- You must set mapping if you want.
|
-- You must set mapping if you want.
|
||||||
mapping = {
|
mapping = {
|
||||||
["<tab>"] = cmp.mapping(function(fallback)
|
["<tab>"] = cmp.mapping(function(fallback)
|
||||||
if require('neogen').jumpable() then
|
if neogen.jumpable() then
|
||||||
require('neogen').jump_next()
|
neogen.jump_next()
|
||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
end
|
end
|
||||||
@@ -157,8 +157,8 @@ cmp.setup {
|
|||||||
"s",
|
"s",
|
||||||
}),
|
}),
|
||||||
["<S-tab>"] = cmp.mapping(function(fallback)
|
["<S-tab>"] = cmp.mapping(function(fallback)
|
||||||
if require('neogen').jumpable(true) then
|
if neogen.jumpable(true) then
|
||||||
require('neogen').jump_prev()
|
neogen.jump_prev()
|
||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user