diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-10-11 21:52:52 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-10-11 21:52:52 +0200 |
| commit | 307486d2a0983d5f2d3f866a0acad43dc8323166 (patch) | |
| tree | b61cfc6fd4a6e3e355e557a07ba6ebbbdea97389 /common/home/programs/nixvim/plugins/cmp.nix | |
| parent | cd2c10c424a3c0f041c8df63310fedba352f0108 (diff) | |
try more minimal nvim config
Diffstat (limited to 'common/home/programs/nixvim/plugins/cmp.nix')
| -rw-r--r-- | common/home/programs/nixvim/plugins/cmp.nix | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/common/home/programs/nixvim/plugins/cmp.nix b/common/home/programs/nixvim/plugins/cmp.nix deleted file mode 100644 index 27cca04..0000000 --- a/common/home/programs/nixvim/plugins/cmp.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ ... }: -{ - enable = true; - autoEnableSources = true; - settings = { - mapping = { - "<C-b>" = "cmp.mapping.scroll_docs(-4)"; - "<C-f>" = "cmp.mapping.scroll_docs(4)"; - "<C-Space>" = "cmp.mapping.complete()"; - "<C-e>" = "cmp.mapping.abort()"; - "<CR>" = "cmp.mapping.confirm({ select = true })"; - "<Tab>" = '' - cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - else - fallback() - end - end, { "i", "s" }) - ''; - "<S-Tab>" = '' - cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - else - fallback() - end - end, { "i", "s" }) - ''; - }; - snippet = { - expand = '' - function(args) - require('luasnip').lsp_expand(args.body) - end - ''; - }; - sources = [ - { name = "nvim_lsp"; } - { name = "luasnip"; } - { name = "path"; } - { name = "buffer"; } - ]; - }; -} |