Remove comment and use bumdler executable

This commit is contained in:
Yoni FIRROLONI 2023-07-25 20:29:18 +02:00
commit 793fee7f35

View file

@ -6,7 +6,6 @@
}: }:
with lib; with lib;
with builtins; let with builtins; let
#format-env = pkgs.callPackage ./format-derivation.nix {inherit pkgs;};
cfg = config.vim.languages.ruby; cfg = config.vim.languages.ruby;
defaultServer = "rubocop"; defaultServer = "rubocop";
@ -28,7 +27,7 @@ with builtins; let
lspConfig = '' lspConfig = ''
lspconfig.rubocop.setup { lspconfig.rubocop.setup {
on_attach = attach_keymaps, on_attach = attach_keymaps,
cmd = { "rubocop", "--lsp" }, cmd = { "${cfg.lsp.package}/bin/bundle", "exec", "rubocop", "--lsp" },
} }
''; '';
}; };