diff --git a/home/eww.nix b/home/eww.nix index 02abad8b..d895323f 100644 --- a/home/eww.nix +++ b/home/eww.nix @@ -1,4 +1,9 @@ -{ nix-config, pkgs, config, ... }: +{ + nix-config, + pkgs, + config, + ... +}: let inherit (config.home) homeDirectory; diff --git a/home/hyprland.nix b/home/hyprland.nix index 135d0304..372c35a0 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -1,4 +1,9 @@ -{ nix-config, pkgs, lib, ... }: +{ + nix-config, + pkgs, + lib, + ... +}: let inherit (lib) mkForce; diff --git a/home/neovim.nix b/home/neovim.nix index 5db2918c..596d5365 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -241,10 +241,12 @@ [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete(), + [''] = cmp.mapping.confirm { behavior = cmp.ConfirmBehavior.Replace, select = true, }, + [''] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() @@ -254,6 +256,7 @@ fallback() end end, { 'i', 's' }), + [''] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_prev_item() @@ -264,6 +267,7 @@ end end, { 'i', 's' }), }), + sources = { { name = 'nvim_lsp' }, { name = 'luasnip' }, diff --git a/tests/neovim.nix b/tests/neovim.nix index b0293543..353ca09c 100644 --- a/tests/neovim.nix +++ b/tests/neovim.nix @@ -16,7 +16,9 @@ self.inputs.nixpkgs.lib.nixos.runTest { modules.desktop.container = true; - home-manager.sharedModules = with nix-config.homeModules; [ neovim ]; + home-manager.sharedModules = with nix-config.homeModules; [ + neovim + ]; }; testScript = # python