_: { programs.nixvim.plugins.blink-cmp = { enable = true; setupLspCapabilities = true; settings = { keymap = { preset = "enter"; "" = [ "show" ]; "" = [ "scroll_documentation_up" ]; "" = [ "hide" ]; "" = [ "scroll_documentation_down" ]; "" = [ "accept" { __raw = '' function() local ok, copilot = pcall(require, "copilot.suggestion") if ok and copilot.is_visible() then copilot.accept() return true end end ''; } "fallback" ]; "" = [ "select_prev" "fallback" ]; "" = [ "select_next" "fallback" ]; "" = [ "select_prev" "fallback" ]; }; completion.list.selection = { preselect = true; auto_insert = false; }; sources.default = [ "lsp" "path" "buffer" ]; }; }; }