MaskRay / ccls

C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Apache License 2.0
3.73k stars 255 forks source link

how to diable codeLens in nvim #824

Open zzx41375004 opened 3 years ago

zzx41375004 commented 3 years ago

why the command 'ccls --init={"codeLens": {"localVariables": false}}' failed?

ccls: Unknown command line argument '{localVariables:'.  Try: 'ccls --help'
ccls: Unknown command line argument 'false}}'.  Try: 'ccls --help'
ccls: Unknown command line argument 'failed?'.  Try: 'ccls --help'

l just follow the guide, and in my coc.vim configuration json file , i use:

        "ccls": {
            "command": "ccls",
            "filetypes": ["c", "cpp", "cuda", "objc", "objcpp"],
            "rootPatterns": [".ccls", ".ccls-root", "compile_commands.json", ".git/", ".hg/"],
            "initializationOptions": {
                "cache": {
                    "directory": "/tmp/ccls"
                },
                               "codeLens": {
                                         "localVariables": false
                                }   
                     }
                }

why it did not work?