From 4ae16d3294e92c376df9cd1763e57de052a1896b Mon Sep 17 00:00:00 2001 From: alejandro-angulo Date: Sat, 17 Aug 2024 22:36:13 -0700 Subject: [PATCH] Increased completion keyword length Also made lsp the first item in sources. --- config/plugins/cmp.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/plugins/cmp.nix b/config/plugins/cmp.nix index 4e1ec14..6073086 100644 --- a/config/plugins/cmp.nix +++ b/config/plugins/cmp.nix @@ -2,6 +2,8 @@ plugins.cmp = { enable = true; settings = { + completion = {keyword_length = 2;}; + mapping = { "" = "cmp.mapping.select_next_item()"; "" = "cmp.mapping.select_prev_item()"; @@ -20,11 +22,11 @@ ''; sources = [ + {name = "nvim_lsp";} {name = "buffer";} {name = "cmdline";} {name = "cmp-clippy";} {name = "luasnip";} - {name = "nvim_lsp";} {name = "path";} ]; };