From 379b7cf72160f449df5a0dbd80ddb5a63926b721 Mon Sep 17 00:00:00 2001 From: Tyler Mayoff Date: Thu, 23 Jan 2025 08:12:24 -0500 Subject: [PATCH] Added obj-c and bumped helix --- dot_config/flake/flake.nix | 2 +- dot_config/helix/languages.toml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/dot_config/flake/flake.nix b/dot_config/flake/flake.nix index 8665406..7cb2b1f 100644 --- a/dot_config/flake/flake.nix +++ b/dot_config/flake/flake.nix @@ -9,7 +9,7 @@ inputs.nixpkgs.follows = "nixpkgs"; }; nixgl.url = "github:nix-community/nixGL"; - helix.url = "github:helix-editor/helix/25.01"; + helix.url = "github:helix-editor/helix/25.01.1"; darwin.url = "github:lnl7/nix-darwin"; }; diff --git a/dot_config/helix/languages.toml b/dot_config/helix/languages.toml index d1af0c5..edc0eaa 100644 --- a/dot_config/helix/languages.toml +++ b/dot_config/helix/languages.toml @@ -26,6 +26,20 @@ scope = "source.nix" auto-format = true formatter = { command = "alejandra", args = ["-q"] } +[[language]] +name = "objc" +scope = "source.objc" +file-types = ["m", "mm", "M"] +injection-regex = "objc" +roots = ["xcodeproj"] +comment-token = "//" +indent = { tab-width = 2, unit = " " } +language-servers = [ {name = "clangd"} ] + +[[grammar]] +name = "objc" +source = { git = "https://github.com/tree-sitter-grammars/tree-sitter-objc", rev = "18802acf31d0b5c1c1d50bdbc9eb0e1636cab9ed" } + ################## ### BiomeJS Setup ##################