diff options
author | Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> | 2024-07-21 15:13:16 +0200 |
---|---|---|
committer | Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> | 2024-07-21 15:13:16 +0200 |
commit | a9e6bcdfbee0767b6375a239c67b979db63d5812 (patch) | |
tree | 890f7df23e2ca7f2c2cff6f68e718709e2495070 | |
parent | 3351ecf9d0ee24be022ce26714886ee3af8ed484 (diff) |
add lorri information and editorconfig
-rw-r--r-- | .editorconfig | 12 | ||||
-rw-r--r-- | .envrc | 9 | ||||
-rw-r--r-- | shell.nix | 9 |
3 files changed, 30 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f394793 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +[Makefile] +indent_style = tab + +[*.{c,h}] +indent_style = space +indent_size = 2 @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +# the shebang is ignored, but nice for editors + +if type -P lorri &>/dev/null; then + eval "$(lorri direnv)" +else + echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]' + use nix +fi diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..6b5b81f --- /dev/null +++ b/shell.nix @@ -0,0 +1,9 @@ +with (import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/release-24.05.tar.gz") {}); + +pkgs.mkShell { + buildInputs = [ + ccls + bear + gdb + ]; +} |