diff --git a/settings.json b/settings.json index e706136..5417d09 100644 --- a/settings.json +++ b/settings.json @@ -95,7 +95,7 @@ "nix": true, "proto": true, "pylsp": true, - "ruff": true, + // "ruff": true, "scala": true, "toml": true, "typos": true, @@ -108,6 +108,9 @@ "JSONC": { "format_on_save": "on" }, + "Jinja2": { + "tab_size": 2 + }, // "Python": { // "language_servers": ["pylsp", "!pyright", "!basedpyright"] // // "enable_language_server": false, @@ -167,18 +170,18 @@ // "yapf": { "enabled": false } // } // }, - "ruff": { - "initialization_options": { - "settings": { - // "lineLength": 120, - "showSyntaxErrors": true, - "lint": { - // "select": ["ALL"] - // "ignore": ["D", "S101"] - } - } - } - }, + // "ruff": { + // "initialization_options": { + // "settings": { + // // "lineLength": 120, + // "showSyntaxErrors": true, + // "lint": { + // // "select": ["ALL"] + // // "ignore": ["D", "S101"] + // } + // } + // } + // }, "typos": { "initialization_options": { // bundled binary is dynamically linked diff --git a/snippets/jinja2.json b/snippets/jinja2.json index e4e0858..8b7415f 100644 --- a/snippets/jinja2.json +++ b/snippets/jinja2.json @@ -1,27 +1,27 @@ { "Comment": { "prefix": "comment", - "body": "{# $0 #}", + "body": "{# $0 #}$0", "description": "Jinja snippet 'Comment'" }, "Complete Comment": { "prefix": "{#", - "body": "{# $0 #}", + "body": "{# $0 #}$0", "description": "Jinja snippet 'Complete'" }, "Do": { "prefix": "do", - "body": "{% do ${1:expr} %}{# requires jinja2.ext.do #}", + "body": "{% do ${1:expr} %}{# requires jinja2.ext.do #}$0", "description": "Jinja snippet 'Do'" }, "Continue": { "prefix": "continue", - "body": "{% continue %}{# requires jinja2.ext.loopcontrols #}", + "body": "{% continue %}{# requires jinja2.ext.loopcontrols #}$0", "description": "Jinja snippet 'Continue'" }, "Break": { "prefix": "break", - "body": "{% break %}{# requires jinja2.ext.loopcontrols #}", + "body": "{% break %}{# requires jinja2.ext.loopcontrols #}$0", "description": "Jinja snippet 'Break'" }, "Autoescape": { @@ -31,27 +31,27 @@ }, "Todo": { "prefix": "todo", - "body": "{# TODO: ${1:message} #}", + "body": "{# TODO: ${1:message} #}$0", "description": "Jinja snippet 'Todo'" }, "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'" }, "Set": { "prefix": "set", - "body": "{% set ${1:var} = ${2:expr} %}", + "body": "{% set ${1:var} = ${2:expr} %}$0", "description": "Jinja snippet 'Set'" }, "if": { "prefix": "if", - "body": "{% if ${1:expr} %}\n{% endif %}", + "body": "{% if ${1:expr} %}\n{% endif %}$0", "description": "Jinja snippet 'If'" }, "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'" } }