mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-21 15:53:32 +01:00
chore: Improve formatting
This commit is contained in:
parent
71b252d810
commit
939002e2f6
@ -1,4 +1,9 @@
|
||||
{ nix-config, pkgs, config, ... }:
|
||||
{
|
||||
nix-config,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (config.home) homeDirectory;
|
||||
|
@ -1,4 +1,9 @@
|
||||
{ nix-config, pkgs, lib, ... }:
|
||||
{
|
||||
nix-config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (lib) mkForce;
|
||||
|
@ -241,10 +241,12 @@
|
||||
['<C-u>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-d>'] = cmp.mapping.scroll_docs(4),
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
|
||||
['<CR>'] = cmp.mapping.confirm {
|
||||
behavior = cmp.ConfirmBehavior.Replace,
|
||||
select = true,
|
||||
},
|
||||
|
||||
['<Tab>'] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_next_item()
|
||||
@ -254,6 +256,7 @@
|
||||
fallback()
|
||||
end
|
||||
end, { 'i', 's' }),
|
||||
|
||||
['<S-Tab>'] = 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' },
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user