mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/cmp: fix examples for snippet.expand
This commit is contained in:
parent
04091a13ec
commit
9c2c0d20df
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ with lib; rec {
|
||||||
settingsOptions = import ./settings-options.nix {inherit lib helpers;};
|
settingsOptions = import ./settings-options.nix {inherit lib helpers;};
|
||||||
|
|
||||||
settingsExample = {
|
settingsExample = {
|
||||||
snippet.expand = "luasnip";
|
snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
|
||||||
mapping.__raw = ''
|
mapping.__raw = ''
|
||||||
cmp.mapping.preset.insert({
|
cmp.mapping.preset.insert({
|
||||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
snippet-engine = {
|
snippet-engine = {
|
||||||
plugins.cmp = {
|
plugins.cmp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.snippet.expand = "luasnip";
|
settings.snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
snippet.expand = "luasnip";
|
snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
|
||||||
window = {
|
window = {
|
||||||
completion.__raw = "cmp.config.window.bordered";
|
completion.__raw = "cmp.config.window.bordered";
|
||||||
documentation.__raw = "cmp.config.window.bordered";
|
documentation.__raw = "cmp.config.window.bordered";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue