Skip to content

Commit

Permalink
chore: reformat and remove some old stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayeu committed Jul 17, 2023
1 parent 476c4ec commit fce1dfd
Show file tree
Hide file tree
Showing 9 changed files with 244 additions and 387 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The docs currently still live in [@caarlos0][caarlos-docs] repository.

## Some useful commands

* `reload!`: reload your shell
- `reload!`: reload your shell

## Why not a fork?

Expand Down
12 changes: 6 additions & 6 deletions bin.symlink/delete-nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ rm /Library/LaunchDaemons/org.nixos.darwin-store.plist

echo "🧹 Remove the files created by nix"
rm -rf \
/etc/nix /var/root/.nix-profile \
/var/root/.nix-defexpr \
/var/root/.nix-channels \
~/.nix-profile \
~/.nix-defexpr \
~/.nix-channels
/etc/nix /var/root/.nix-profile \
/var/root/.nix-defexpr \
/var/root/.nix-channels \
~/.nix-profile \
~/.nix-defexpr \
~/.nix-channels

echo "🛑 Remove the groups created by nix"
dscl . delete /Groups/nixbld
Expand Down
154 changes: 0 additions & 154 deletions bin.symlink/dokku_client.sh

This file was deleted.

12 changes: 3 additions & 9 deletions git/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@

# Don't ask ssh password all the time
if [ "$(uname -s)" = "Darwin" ]; then
git config --global credential.helper osxkeychain
git config --global credential.helper osxkeychain
else
git config --global credential.helper cache
git config --global credential.helper cache
fi

# better diffs
if command -v diff-so-fancy >/dev/null 2>&1; then
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
fi

# use vscode as mergetool
if command -v code >/dev/null 2>&1; then
git config --global merge.tool vscode
git config --global mergetool.vscode.cmd "code --wait $MERGED"
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
fi
41 changes: 29 additions & 12 deletions nixpkgs.symlink/vim/customization.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,34 @@
{ pkgs }:

let
{pkgs}: let
my_plugins = pkgs.callPackage ./plugins.nix {};
vimConfig = {
customRC = builtins.readFile ~/.vimrc;
packages.knownPlugins = pkgs.vimPlugins // my_plugins; # optional
packages.pluginDictionaries = [
# load always
{ names = [
"idris-vim" "UltiSnips" "vim-snippets"
"fugitive" "Solarized" "vim-airline"
"Syntastic" "vim-nix" "vim-dispatch"
"vim-dispatch-neovim" "vim-elixir"
"vim-projectionist" "vim-phoenix"
"vim-ledger" "vim-ruby"
"elm-vim" "gruvbox"
{
names = [
# Theme
#"Solarized" # Theme
"gruvbox" # Theme

# UI
"vim-airline"

# Tools
"fugitive" # Tpope git stuff
"UltiSnips" # Snippets
"vim-snippets" # Snippets
"vim-dispatch" # Async adapter by tpope
"vim-dispatch-neovim"
"vim-projectionist" # Project management
"Syntastic" # Syntax checking

# Lang
"vim-nix" #
"vim-elixir"
"vim-phoenix"
"vim-ledger"
"vim-ruby"
];
}
# only load when opening a .nix file
Expand All @@ -25,4 +39,7 @@ let
];
};
in
pkgs.neovim.override {vimAlias = true; configure = vimConfig;}
pkgs.neovim.override {
vimAlias = true;
configure = vimConfig;
}
7 changes: 4 additions & 3 deletions nixpkgs.symlink/vim/plugins.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{ pkgs, fetchgit }:
let
{
pkgs,
fetchgit,
}: let
buildVimPlugin = pkgs.vimUtils.buildVimPluginFrom2Nix;
in {

"vim-dispatch" = buildVimPlugin {
name = "vim-dispatch";
src = fetchgit {
Expand Down
Loading

0 comments on commit fce1dfd

Please sign in to comment.