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-size = 16
theme = "catppuccin-mocha"
confirm-close-surface = false
'';
};
@ -41,6 +42,7 @@
end
'';
shellAbbrs = {
drs = "darwin-rebuild switch --flake ~/.config/nix-darwin";
j = "jj";
};
};

View file

@ -143,12 +143,39 @@
plugins.cmp = {
enable = true;
autoEnableSources = true;
settings.sources = [
{ name = "nvim_lsp"; }
{ name = "luasnip"; }
{ name = "path"; }
{ name = "buffer"; }
];
settings = {
sources = [
{ name = "nvim_lsp"; }
{ name = "luasnip"; }
{ 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;

View file

@ -53,6 +53,7 @@
"ghostty"
"karabiner-elements"
"keepingyouawake"
"obsidian"
"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 = {
casks = [
"discord"