fix: ccls config

This commit is contained in:
Ching Pei Yang 2023-04-23 15:36:53 +02:00
parent 91da602672
commit dca00f83dd

View file

@ -16,8 +16,8 @@ with builtins; let
lspconfig.ccls.setup{ lspconfig.ccls.setup{
capabilities = capabilities; capabilities = capabilities;
on_attach=default_on_attach; on_attach=default_on_attach;
cmd = {"${pkgs.ccls}/bin/ccls"}; cmd = {"${cfg.lsp.package}/bin/ccls"};
${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.cclsOpts}"} ${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.opts}"}
} }
''; '';
}; };