{ config, pkgs, nixvim, ... }: { imports = [ nixvim.homeManagerModules.nixvim ./cmp.nix ./lsp.nix ]; programs.nixvim = { enable = true; colorschemes.oxocarbon.enable = true; extraConfigLua = '' mapping = cmp.mapping.preset.insert({ [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() else fallback() end end, { "i", "s" }), [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_prev_item() else fallback() end end, { "i", "s" }), [""] = cmp.mapping.scroll_docs(-4), [""] = cmp.mapping.scroll_docs(4), [""] = cmp.mapping.complete(), [""] = cmp.mapping.abort(), [""] = cmp.mapping.abort(), [""] = cmp.mapping.confirm({ select = false }), }), ''; plugins = { lualine = { enable = true; }; }; }; }