{...}: { programs.nixvim.plugins.cmp = { enable = true; settings = { sources = [ { name = "nvim_lsp"; priority = 10; } { name = "treesitter"; priority = 6; } { name = "luasnip"; priority = 8; } { name = "path"; priority = 0; } ]; snippet.expand = "luasnip"; completion = { autocomplete = false; }; mapping = { "" = "cmp.mapping.complete()"; "" = "cmp.mapping.close()"; "" = "cmp.mapping.confirm({ select = true })"; "" = "cmp.mapping.scroll_docs(-4)"; "" = "cmp.mapping.scroll_docs(4)"; "" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})"; "" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; }; }; }; }