dock, cmp, etc. updates

This commit is contained in:
sloane 2025-02-16 10:37:38 -05:00
parent ae548c612e
commit a52c051376
Signed by: sloanelybutsurely
SSH key fingerprint: SHA256:8SBnwhl+RY3oEyQxy1a9wByPzxWM0x+/Ejc+sIlY5qQ
4 changed files with 49 additions and 6 deletions
home-manager
nix-darwin
default.nix
hosts/Sloanes-MacBook-Air

View file

@ -25,6 +25,7 @@
font-family = "Maple Mono NF" font-family = "Maple Mono NF"
font-size = 16 font-size = 16
theme = "catppuccin-mocha" theme = "catppuccin-mocha"
confirm-close-surface = false
''; '';
}; };
@ -41,6 +42,7 @@
end end
''; '';
shellAbbrs = { shellAbbrs = {
drs = "darwin-rebuild switch --flake ~/.config/nix-darwin";
j = "jj"; j = "jj";
}; };
}; };

View file

@ -143,12 +143,39 @@
plugins.cmp = { plugins.cmp = {
enable = true; enable = true;
autoEnableSources = true; autoEnableSources = true;
settings.sources = [ settings = {
{ name = "nvim_lsp"; } sources = [
{ name = "luasnip"; } { name = "nvim_lsp"; }
{ name = "path"; } { name = "luasnip"; }
{ name = "buffer"; } { name = "path"; }
]; { name = "buffer"; }
];
mappings = {
"<C-n>" = ''
cmp.mapping(function()
if cmp.visible() then
cmp.select_next_item({behavior = 'insert'})
else
cmp.complete()
end
end)
'';
"<C-p>" = ''
cmp.mapping(function()
if cmp.visible() then
cmp.select_prev_item({behavior = 'insert'})
else
cmp.complete()
end
end)
'';
};
snippet.expand = ''
function(args)
require('luasnip').lsp_expand(args.body)
end
'';
};
}; };
plugins.tmux-navigator.enable = true; plugins.tmux-navigator.enable = true;

View file

@ -53,6 +53,7 @@
"ghostty" "ghostty"
"karabiner-elements" "karabiner-elements"
"keepingyouawake" "keepingyouawake"
"obsidian"
"tailscale" "tailscale"
]; ];

View file

@ -1,5 +1,18 @@
{ ... }: { ... }:
{ {
system.defaults = {
dock.persistent-apps = [
"/Applications/Firefox.app"
"/System/Applications/Mail.app"
"/Applications/Fantastical.app"
"/Applications/Things3.app"
"/System/Applications/Messages.app"
"/Applications/Discord.app"
"/Applications/Obsidian.app"
"/Applications/Ghostty.app"
];
};
homebrew = { homebrew = {
casks = [ casks = [
"discord" "discord"