formatting

Signed-off-by: Michael Thomson <michael@michaelthomson.dev>
This commit is contained in:
2024-11-17 21:07:58 -05:00
parent f3e9f9e031
commit 5a9eafc05c
33 changed files with 310 additions and 264 deletions

View File

@@ -1,6 +1,9 @@
{ inputs, pkgs, config, ... }:
{
inputs,
pkgs,
config,
...
}: {
imports = [
inputs.nixvim.homeManagerModules.nixvim
];
@@ -185,18 +188,18 @@
"<C-y>" = "cmp.mapping.confirm { select = true }";
"<C-Space>" = "cmp.mapping.complete {}";
"<C-l>" = ''
cmp.mapping(function()
if luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
end
end, { 'i', 's' })
cmp.mapping(function()
if luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
end
end, { 'i', 's' })
'';
"<C-h>" = ''
cmp.mapping(function()
if luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
end
end, { 'i', 's' })
cmp.mapping(function()
if luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
end
end, { 'i', 's' })
'';
};
sources = [
@@ -234,7 +237,7 @@
enable = true;
settings = {
formatting = {
command = [ "alejandra" ];
command = ["alejandra"];
};
options = {
nix-darwin = {