From 7c35d02bcb81a2b9237bcb72429a73dc26dd8050 Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Mon, 19 Sep 2022 13:10:56 -0500 Subject: [PATCH] add Sorbet support for Ruby --- dotfiles/helix/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/dotfiles/helix/default.nix b/dotfiles/helix/default.nix index 22ed5d8..88d07fa 100644 --- a/dotfiles/helix/default.nix +++ b/dotfiles/helix/default.nix @@ -1,10 +1,20 @@ { pkgs, ... }: { programs.helix = { enable = true; - languages = [{ - name = "rust"; - auto-format = true; - }]; + languages = [ + { + name = "rust"; + auto-format = true; + } + { + name = "ruby"; + roots = ["Gemfile" "Gemfile.lock"]; + language-server = { + command = "srb"; + args = [ "typecheck" "--lsp" ]; + }; + } + ]; settings = { theme = "monokai_pro_machine";