Skip to content

Commit

Permalink
home manager config
Browse files Browse the repository at this point in the history
  • Loading branch information
adfaure committed Jun 7, 2024
1 parent ec30008 commit f533a06
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
11 changes: 11 additions & 0 deletions homes/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,23 @@
difftastic.enable = true;
userName = "Adrien Faure";
userEmail = "[email protected]";

aliases = {
ds = "diff --staged";
l = "log --pretty=format:'%C(auto,yellow)%h%C(auto,magenta) %C(auto,blue)%ad %C(auto,green)%aN %C(auto,reset)%s%C(auto)% gD%d' --graph --date=format:'%Y-%m-%d %H:%M:%S' --decorate-refs-exclude='refs/remotes/*/HEAD'";
st = "status";
chk = "checkout";
};
extraConfig = {
# init = {
# defaultBranch = "master";
# };
# push.default = "current";
# safe.bareRepository = "explicit";
# rebase.instructionFormat = "%d %s";
merge.conflictstyle = "diff3";
# commit.verbose = true;
};
};

programs.starship = {
Expand Down
1 change: 1 addition & 0 deletions homes/modules/vim/my_vim_plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
unstable,
}: {
plugins = with vimPlugins; [
telescope-nvim
# lib for some plugins
vim-misc
# Multi vim cursor
Expand Down
7 changes: 7 additions & 0 deletions homes/modules/vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,10 @@ let g:airline#extensions#ale#enabled = 1

nmap K :ALEHover<CR>
nmap gd :ALEGoToDefinition<CR>
" Find files using Telescope command-line sugar.
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
6 changes: 5 additions & 1 deletion homes/modules/zsh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ in {
programs.zsh = {
enable = true;
enableCompletion = true;
enableAutosuggestions = true;
autosuggestion.enable = true;

shellAliases = {
r = "ranger";
t1 = "tree -L 1";
t2 = "tree -L 2";
t3 = "tree -L 3";

v = "vim";
vim = "nvim";
t = "task";
Expand Down

0 comments on commit f533a06

Please sign in to comment.