From 6da1af0fe50dcdf87fd07ef6bda127e7c29733e6 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Fri, 17 Oct 2025 01:02:28 +0530 Subject: [PATCH] feat(neovim): map to select_and_accept action --- neovim/default.nix | 57 +--------------------------------------------- 1 file changed, 1 insertion(+), 56 deletions(-) diff --git a/neovim/default.nix b/neovim/default.nix index bfefb777..4893b9ae 100644 --- a/neovim/default.nix +++ b/neovim/default.nix @@ -550,6 +550,7 @@ in { # "" = "cmp.mapping.complete()"; # "" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; # "" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})"; + "" = ["select_and_accept" "fallback"]; "" = [ "select_next" "fallback" @@ -605,62 +606,6 @@ in { enable = true; settings.impersonate_nvim_cmp = true; }; - # cmp = { - # enable = true; - # settings = { - # autoEnableSources = true; - # sources = [ - # {name = "buffer";} - # {name = "buffer";} - # {name = "cmdline";} - # {name = "cmp-clippy";} - # {name = "cmp-cmdline-history";} - # {name = "crates";} - # {name = "dap";} - # # {name = "dictionary";} - # {name = "fish";} - # {name = "git";} - # {name = "luasnip";} - # {name = "nvim_lsp";} - # {name = "nvim_lua";} - # {name = "nvim_lsp_signature_help";} - # {name = "nvim_lsp_document_symbol";} - # {name = "path";} - # {name = "rg";} - # {name = "spell";} - # {name = "tmux";} - # {name = "treesitter";} - # ]; - # view = { - # entries = { - # name = "custom"; - # selection_order = "near_cursor"; - # }; - # }; - # window = { - # completion = { - # inherit border; - # }; - # documentation = { - # inherit border; - # }; - # }; - # mapping = { - # # "" = "cmp.mapping.confirm({select = true})"; - # "" = "cmp.mapping.confirm()"; - # "" = "cmp.mapping.complete()"; - # "" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; - # "" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})"; - # }; - # snippet.expand = - # # lua - # '' - # function(args) - # require('luasnip').lsp_expand(args.body) - # end - # ''; - # }; - # }; }; extraConfigLua = # lua