alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
nvim: change cmp bindings
author
lassulus
date
2 years ago
(Oct 16, 2024, 8:54 AM CEST)
commit
04180efd
04180efd4cce0154f983bca3dd5d33a81c852a07
parent
227ee2eb
227ee2ebf6303e80a59b1222b753e488ee5ccce2
+13
-3
1 changed file
Expand all
Collapse all
Unified
Split
tools
nvim.nix
+13
-3
tools/nvim.nix
View file
Reviewed
···
265
265
"<C-e>" = "cmp.mapping.abort()";
266
266
"<C-b>" = "cmp.mapping.scroll_docs(-4)";
267
267
"<C-f>" = "cmp.mapping.scroll_docs(4)";
268
268
-
"<C-Space>" = "cmp.mapping.complete()";
269
269
-
"<CR>" = "cmp.mapping.confirm({ select = true })";
270
270
-
"<S-CR>" = "cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true })";
268
268
+
"<CR>" = ''
269
269
+
cmp.mapping({
270
270
+
i = function(fallback)
271
271
+
if cmp.visible() and cmp.get_active_entry() then
272
272
+
cmp.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = false })
273
273
+
else
274
274
+
fallback()
275
275
+
end
276
276
+
end,
277
277
+
s = cmp.mapping.confirm({ select = true }),
278
278
+
c = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true }),
279
279
+
})
280
280
+
'';
271
281
};
272
282
};
273
283
};