From 0746057d8c7feb6c62faf9b806ec18e068f473de Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Mon, 20 Oct 2025 11:05:54 +0300 Subject: [PATCH] fix ruby-lsp and rubocop for zed --- home/modules/zed/default.nix | 41 ++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/home/modules/zed/default.nix b/home/modules/zed/default.nix index 532100b..5417c58 100644 --- a/home/modules/zed/default.nix +++ b/home/modules/zed/default.nix @@ -149,16 +149,39 @@ in lsp = with pkgs; { nixd.binary.path = lib.getExe nixd; nil.binary.path = lib.getExe nil; - ruby-lsp.binary.path = lib.getExe ruby-lsp; - rubocop = { - binary = { - path = "bundle"; - arguments = [ - "exec" - "rubocop" - "--lsp" - ]; + ruby-lsp = { + initialization_options = { + enabledFeatures = { + codeActions = true; + codeLens = true; + completion = true; + definition = true; + diagnostics = true; + documentHighlights = true; + documentLink = true; + documentSymbols = true; + foldingRanges = true; + formatting = false; + hover = true; + inlayHint = true; + onTypeFormatting = true; + selectionRanges = true; + semanticHighlighting = true; + signatureHelp = true; + typeHierarchy = true; + workspaceSymbol = true; + }; + linters = [ "standard" ]; }; + settings.use_bundler = true; + }; + rubocop.binary = { + path = "bundle"; + arguments = [ + "exec" + "rubocop" + "--lsp" + ]; }; yaml-language-server.binary = { path = lib.getExe yaml-language-server;