Skip to content

Instantly share code, notes, and snippets.

@yunlingz
Created August 17, 2020 16:36
Show Gist options
  • Select an option

  • Save yunlingz/3a9c536064c8070ebf1b87a2dcc866e7 to your computer and use it in GitHub Desktop.

Select an option

Save yunlingz/3a9c536064c8070ebf1b87a2dcc866e7 to your computer and use it in GitHub Desktop.
coc-settings.json
{
"diagnostic.errorSign": "❯",
"diagnostic.warningSign": "❯",
"diagnostic.infoSign": "❯",
"diagnostic.hintSign": "❯",
// ---
"diagnostic.virtualText": true,
"diagnostic.virtualTextCurrentLineOnly": false,
"diagnostic.virtualTextPrefix": " ",
// ---
"coc.preferences.jumpCommand": "view",
// --- rls ---
// "rust-analyzer.serverPath": "/Users/ling/opt/rust-analyzer-mac",
// --- clangd ---
// "clangd.path": "/usr/local/opt/llvm/bin/clangd",
// "clangd.arguments": ["--clang-tidy", "--fallback-style=google"],
// "clangd.fallbackFlags": [
// "-std=c++17",
// "-pedantic",
// "-Wall",
// "-Wextra",
// "-fno-exceptions",
// "-fno-rtti"
// ],
// --- pyls ---
// "python.formatting.provider": "black",
// "python.linting.pylintEnabled": false,
// "python.linting.pylintArgs": [
// "--indent-string=' '",
// "--extension-pkg-whitelist=cv2",
// "--good-names-rgxs=^[A-Za-z]{1},^[A-Za-z]{2}",
// "--disable=C0114,C0115,C0116"
// ],
// "python.formatting.blackArgs": ["-l", "90"],
// "python.linting.flake8Enabled": true,
// "python.linting.flake8Args": ["--max-line-length", "88"],
// --- lsp ---
"languageserver": {
"pyls": {
"command": "/Users/ling/Library/Python/3.8/bin/pyls",
"args": [],
"filetypes": ["python"]
},
"clangd": {
"command": "/usr/local/opt/llvm/bin/clangd",
"args": ["--clang-tidy", "--fallback-style=google"],
"rootPatterns": ["compile_flags.txt", "compile_commands.json"],
"requireRootPattern": true,
"filetypes": ["c", "cpp"]
},
"rust-lsp": {
"command": "/Users/ling/opt/rust-analyzer-mac",
"args": [],
"rootPatterns": ["Cargo.toml"],
"requireRootPattern": true,
"filetypes": ["rust"]
},
"gopls": {
"command": "/Users/ling/go/bin/gopls",
"args": [],
"rootPatterns": ["go.mod"],
"requireRootPattern": true,
"disableWorkspaceFolders": true,
"filetypes": ["go"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment