dotfiles/coc-settings.json
2024-03-06 23:01:53 +08:00

56 lines
1.2 KiB
JSON

{
"diagnostic.checkCurrentLine": true,
"eslint.autoFixOnSave": false,
"eslint.filetypes": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"prettier.disableSuccessMessage": true,
"coc.preferences.diagnostic.virtualText": true,
"coc.preferences.rootPatterns": [".git"," poetry.lock"," package-lock.json"],
"coc.preferences.formatOnSaveFiletypes": [
"html",
"typescript",
"javascriptreact",
"typescriptreact",
"json",
"graphql",
"handlebars",
"tf",
"ts",
"terraform",
"go",
"python",
"cpp"
],
"tsserver.formatOnType": false,
"coc.preferences.formatOnType": false,
"languageserver": {
"terraform": {
"command": "terraform-ls",
"args": ["serve"],
"filetypes": [
"terraform",
"tf"
],
"initializationOptions": {},
"settings": {}
},
"golang": {
"command": "gopls",
"rootPatterns":["go.mod"],
"filetypes":["go"]
}
},
"yaml.schemas": {
"https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json": "**/docker-compose*.y*ml"
},
"python": {
"formatting": {
"provider": "none"
},
"poetryPath": "poetry",
"pythonPath": "python",
"venvPath": ".venv"
},
"ruff": {
"enable": true
}
}