From a9e6bcdfbee0767b6375a239c67b979db63d5812 Mon Sep 17 00:00:00 2001 From: Lieuwe Rooijakkers Date: Sun, 21 Jul 2024 15:13:16 +0200 Subject: add lorri information and editorconfig --- .editorconfig | 12 ++++++++++++ .envrc | 9 +++++++++ shell.nix | 9 +++++++++ 3 files changed, 30 insertions(+) create mode 100644 .editorconfig create mode 100644 .envrc create mode 100644 shell.nix 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 diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..82b2b9e --- /dev/null +++ b/.envrc @@ -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 + ]; +} -- cgit v1.2.3-70-g09d2