From dca00f83dd7a708faa78c34de1c3287621c6ab27 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 23 Apr 2023 15:36:53 +0200 Subject: [PATCH] fix: ccls config --- modules/languages/clang.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/languages/clang.nix b/modules/languages/clang.nix index a9d11919..39e5031b 100644 --- a/modules/languages/clang.nix +++ b/modules/languages/clang.nix @@ -16,8 +16,8 @@ with builtins; let lspconfig.ccls.setup{ capabilities = capabilities; on_attach=default_on_attach; - cmd = {"${pkgs.ccls}/bin/ccls"}; - ${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.cclsOpts}"} + cmd = {"${cfg.lsp.package}/bin/ccls"}; + ${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.opts}"} } ''; };