From 5f7713d38b4308b5880bb6f193871b184017aab0 Mon Sep 17 00:00:00 2001 From: Nathan Date: Sun, 16 Mar 2025 14:01:15 -0500 Subject: [PATCH] try random things from the internet --- config/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/config/default.nix b/config/default.nix index 179162d..c93a602 100644 --- a/config/default.nix +++ b/config/default.nix @@ -56,17 +56,24 @@ settings = { sources = [ { name = "nvim_lsp"; } - { name = "path"; } +# { name = "path"; } # { name = "buffer"; } - { name = "luasnip"; } +# { name = "luasnip"; } # { name = "cmdline"; } ]; + completion = { + completeopt = "menu,menuone,noinsert"; + }; + mapping = { "[ '' ]" = "cmp.mapping.select_next_item()"; "[ '' ]" = "cmp.mapping.select_prev_item()"; - "[ '' ]" = "cmp.mapping.complete()"; + "[ '' ]" = "cmp.mapping.confirm({ select = true })"; + "[ '' ]" = "cmp.mapping.complete()"; "[ '' ]" = "cmp.mapping.abort()"; + "[ '' ]" = "cmp.mapping.scroll_docs(-4)"; + "[ '' ]" = "cmp.mapping.scroll_docs(4)"; }; snippet.expand = ''