lkjadsdsalkjdsalkj

This commit is contained in:
Peder Bergebakken Sundt 2025-03-31 10:23:52 +02:00
parent 999726b220
commit 2e90dadb12
2 changed files with 26 additions and 23 deletions

@ -95,7 +95,7 @@
"nix": true, "nix": true,
"proto": true, "proto": true,
"pylsp": true, "pylsp": true,
"ruff": true, // "ruff": true,
"scala": true, "scala": true,
"toml": true, "toml": true,
"typos": true, "typos": true,
@ -108,6 +108,9 @@
"JSONC": { "JSONC": {
"format_on_save": "on" "format_on_save": "on"
}, },
"Jinja2": {
"tab_size": 2
},
// "Python": { // "Python": {
// "language_servers": ["pylsp", "!pyright", "!basedpyright"] // "language_servers": ["pylsp", "!pyright", "!basedpyright"]
// // "enable_language_server": false, // // "enable_language_server": false,
@ -167,18 +170,18 @@
// "yapf": { "enabled": false } // "yapf": { "enabled": false }
// } // }
// }, // },
"ruff": { // "ruff": {
"initialization_options": { // "initialization_options": {
"settings": { // "settings": {
// "lineLength": 120, // // "lineLength": 120,
"showSyntaxErrors": true, // "showSyntaxErrors": true,
"lint": { // "lint": {
// "select": ["ALL"] // // "select": ["ALL"]
// "ignore": ["D", "S101"] // // "ignore": ["D", "S101"]
} // }
} // }
} // }
}, // },
"typos": { "typos": {
"initialization_options": { "initialization_options": {
// bundled binary is dynamically linked // bundled binary is dynamically linked

@ -1,27 +1,27 @@
{ {
"Comment": { "Comment": {
"prefix": "comment", "prefix": "comment",
"body": "{# $0 #}", "body": "{# $0 #}$0",
"description": "Jinja snippet 'Comment'" "description": "Jinja snippet 'Comment'"
}, },
"Complete Comment": { "Complete Comment": {
"prefix": "{#", "prefix": "{#",
"body": "{# $0 #}", "body": "{# $0 #}$0",
"description": "Jinja snippet 'Complete'" "description": "Jinja snippet 'Complete'"
}, },
"Do": { "Do": {
"prefix": "do", "prefix": "do",
"body": "{% do ${1:expr} %}{# requires jinja2.ext.do #}", "body": "{% do ${1:expr} %}{# requires jinja2.ext.do #}$0",
"description": "Jinja snippet 'Do'" "description": "Jinja snippet 'Do'"
}, },
"Continue": { "Continue": {
"prefix": "continue", "prefix": "continue",
"body": "{% continue %}{# requires jinja2.ext.loopcontrols #}", "body": "{% continue %}{# requires jinja2.ext.loopcontrols #}$0",
"description": "Jinja snippet 'Continue'" "description": "Jinja snippet 'Continue'"
}, },
"Break": { "Break": {
"prefix": "break", "prefix": "break",
"body": "{% break %}{# requires jinja2.ext.loopcontrols #}", "body": "{% break %}{# requires jinja2.ext.loopcontrols #}$0",
"description": "Jinja snippet 'Break'" "description": "Jinja snippet 'Break'"
}, },
"Autoescape": { "Autoescape": {
@ -31,27 +31,27 @@
}, },
"Todo": { "Todo": {
"prefix": "todo", "prefix": "todo",
"body": "{# TODO: ${1:message} #}", "body": "{# TODO: ${1:message} #}$0",
"description": "Jinja snippet 'Todo'" "description": "Jinja snippet 'Todo'"
}, },
"Block": { "Block": {
"prefix": "block", "prefix": "block",
"body": "{% block ${1:name} %}\\n\\t$2\\n{% endblock %}{# ${1:name} #}", "body": "{% block ${1:name} %}\\n\\t$2\\n{% endblock %}{# ${1:name} #}$0",
"description": "Jinja snippet 'Block'" "description": "Jinja snippet 'Block'"
}, },
"Set": { "Set": {
"prefix": "set", "prefix": "set",
"body": "{% set ${1:var} = ${2:expr} %}", "body": "{% set ${1:var} = ${2:expr} %}$0",
"description": "Jinja snippet 'Set'" "description": "Jinja snippet 'Set'"
}, },
"if": { "if": {
"prefix": "if", "prefix": "if",
"body": "{% if ${1:expr} %}\n{% endif %}", "body": "{% if ${1:expr} %}\n{% endif %}$0",
"description": "Jinja snippet 'If'" "description": "Jinja snippet 'If'"
}, },
"for": { "for": {
"prefix": "for", "prefix": "for",
"body": "{% for ${1:expr} in ${2:expr} %}\n{% endfor %}", "body": "{% for ${1:expr} in ${2:expr} %}\n{% endfor %}$0",
"description": "Jinja snippet 'If'" "description": "Jinja snippet 'If'"
} }
} }