From ea62c3cd8fa989ce5620921cc83dc614f2005469 Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Wed, 16 Oct 2024 14:19:09 +0200 Subject: [PATCH] feat: Project init --- .envrc | 1 + .gitignore | 3 +++ .gitmodules | 3 +++ .luarc.json | 6 ++++++ default.nix | 11 +++++++++++ lib/cc-tweaked | 1 + 6 files changed, 25 insertions(+) create mode 100644 .envrc create mode 100644 .gitmodules create mode 100644 .luarc.json create mode 100644 default.nix create mode 160000 lib/cc-tweaked diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/.gitignore b/.gitignore index 0667445..ce3d79a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Nix +.direnv + # ---> Lua # Compiled Lua sources luac.out diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0f37d00 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib/cc-tweaked"] + path = lib/cc-tweaked + url = git@github.com:jiriks74/CCTweaked-LSP.git diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 0000000..a32b301 --- /dev/null +++ b/.luarc.json @@ -0,0 +1,6 @@ +{ + "workspace.library": [ + "./lib/cc-tweaked/", + "./lib/basalt/Basalt" + ] +} diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..945df29 --- /dev/null +++ b/default.nix @@ -0,0 +1,11 @@ +let + pkgs = import {}; +in +pkgs.mkShell { + packages = with pkgs; [ + # Choose the build tools that you need + ccemux + lua + ]; +} + diff --git a/lib/cc-tweaked b/lib/cc-tweaked new file mode 160000 index 0000000..3476321 --- /dev/null +++ b/lib/cc-tweaked @@ -0,0 +1 @@ +Subproject commit 3476321e41f836626a741477fb03e68f7565982e