fix ruby-lsp and rubocop for zed
This commit is contained in:
@@ -149,9 +149,33 @@ in
|
|||||||
lsp = with pkgs; {
|
lsp = with pkgs; {
|
||||||
nixd.binary.path = lib.getExe nixd;
|
nixd.binary.path = lib.getExe nixd;
|
||||||
nil.binary.path = lib.getExe nil;
|
nil.binary.path = lib.getExe nil;
|
||||||
ruby-lsp.binary.path = lib.getExe ruby-lsp;
|
ruby-lsp = {
|
||||||
rubocop = {
|
initialization_options = {
|
||||||
binary = {
|
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";
|
path = "bundle";
|
||||||
arguments = [
|
arguments = [
|
||||||
"exec"
|
"exec"
|
||||||
@@ -159,7 +183,6 @@ in
|
|||||||
"--lsp"
|
"--lsp"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
|
||||||
yaml-language-server.binary = {
|
yaml-language-server.binary = {
|
||||||
path = lib.getExe yaml-language-server;
|
path = lib.getExe yaml-language-server;
|
||||||
arguments = [ "--stdio" ];
|
arguments = [ "--stdio" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user