From 811c8720ce19b4a2fb554157fb5084f7ad39669f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 7 Jan 2024 17:52:00 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20added=20biome=20and?= =?UTF-8?q?=20mardownlint=20configs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/rules/.markdownlint.json | 23 ++++++++++++++++ .config/nvim/rules/biome.json | 27 +++++++++++++++++++ .config/nvim/snippets/languages/markdown.json | 5 ++++ 3 files changed, 55 insertions(+) create mode 100644 .config/nvim/rules/.markdownlint.json create mode 100644 .config/nvim/rules/biome.json diff --git a/.config/nvim/rules/.markdownlint.json b/.config/nvim/rules/.markdownlint.json new file mode 100644 index 00000000..774b9ede --- /dev/null +++ b/.config/nvim/rules/.markdownlint.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json", + "blanks-around-headings": { + "lines_below": 0 + }, + "ul-style": { + "style": "sublist" + }, + "ol-prefix": { + "style": "ordered" + }, + "line-length": { + "tables": false, + "code_blocks": false + }, + "no-inline-html": { + "allowed_elements": ["div", "img", "details", "summary", "kbd", "a", "br"] + }, + "ul-indent": false, + "no-hard-tabs": false, + "blanks-around-lists": false, + "first-line-heading": false +} diff --git a/.config/nvim/rules/biome.json b/.config/nvim/rules/biome.json new file mode 100644 index 00000000..a26acf2e --- /dev/null +++ b/.config/nvim/rules/biome.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.4.0/schema.json", + "organizeImports": { + "enabled": true + }, + "formatter": { + "lineWidth": 120, + "indentStyle": "space", + "indentWidth": 2, + "formatWithErrors": true + }, + "javascript": { + "globals": [ + "ObjC", + "Application", + "delay", + "Path", + "$" + ] + }, + "linter": { + "enabled": true, + "rules": { + "all": true + } + } +} diff --git a/.config/nvim/snippets/languages/markdown.json b/.config/nvim/snippets/languages/markdown.json index 22e282d4..d2551272 100644 --- a/.config/nvim/snippets/languages/markdown.json +++ b/.config/nvim/snippets/languages/markdown.json @@ -33,5 +33,10 @@ "body": ["> [!WARNING]", "> $0"], "description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts", "prefix": "warning (callout)" + }, + "div": { + "body": ["
{$0}
"], + "description": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div", + "prefix": ["div"] } }