From 307486d2a0983d5f2d3f866a0acad43dc8323166 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 11 Oct 2024 21:52:52 +0200 Subject: try more minimal nvim config --- common/home/programs/nixvim/plugins/cmp.nix | 45 ----------------------------- 1 file changed, 45 deletions(-) delete mode 100644 common/home/programs/nixvim/plugins/cmp.nix (limited to 'common/home/programs/nixvim/plugins/cmp.nix') 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 = { - "" = "cmp.mapping.scroll_docs(-4)"; - "" = "cmp.mapping.scroll_docs(4)"; - "" = "cmp.mapping.complete()"; - "" = "cmp.mapping.abort()"; - "" = "cmp.mapping.confirm({ select = true })"; - "" = '' - cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - else - fallback() - end - end, { "i", "s" }) - ''; - "" = '' - 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"; } - ]; - }; -} -- cgit v1.2.3-70-g09d2