From 267099419323218a0a9e819aae2918a01054ccbf Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sun, 3 Mar 2024 20:13:24 -0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20Install=20DevDocs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/glow/frappe.json | 199 ++++++++++++++++++++++++++++ .config/glow/glow.yml | 10 ++ .config/glow/latte.json | 199 ++++++++++++++++++++++++++++ .config/glow/macchiato.json | 199 ++++++++++++++++++++++++++++ .config/glow/mocha.json | 199 ++++++++++++++++++++++++++++ .config/nvim/lua/plugins/editor.lua | 35 +++++ .gitmodules | 3 + .themes/glamour/catppuccin | 1 + 8 files changed, 845 insertions(+) create mode 100644 .config/glow/frappe.json create mode 100644 .config/glow/glow.yml create mode 100644 .config/glow/latte.json create mode 100644 .config/glow/macchiato.json create mode 100644 .config/glow/mocha.json create mode 160000 .themes/glamour/catppuccin diff --git a/.config/glow/frappe.json b/.config/glow/frappe.json new file mode 100644 index 0000000..990ef35 --- /dev/null +++ b/.config/glow/frappe.json @@ -0,0 +1,199 @@ +{ + "document": { + "block_prefix": "\n", + "block_suffix": "\n", + "color": "#c6d0f5", + "margin": 2 + }, + "block_quote": { + "indent": 1, + "indent_token": "│ " + }, + "paragraph": {}, + "list": { + "level_indent": 2 + }, + "heading": { + "block_suffix": "\n", + "color": "#c6d0f5", + "bold": true + }, + "h1": { + "prefix": "▓▓▓ ", + "suffix": " ", + "color": "#e78284", + "bold": true + }, + "h2": { + "prefix": "▓▓▓▓ ", + "color": "#ef9f76" + }, + "h3": { + "prefix": "▓▓▓▓▓ ", + "color": "#e5c890" + }, + "h4": { + "prefix": "▓▓▓▓▓▓ ", + "color": "#a6d189" + }, + "h5": { + "prefix": "▓▓▓▓▓▓▓ ", + "color": "#85c1dc" + }, + "h6": { + "prefix": "▓▓▓▓▓▓▓▓ ", + "color": "#babbf1" + }, + "text": {}, + "strikethrough": { + "crossed_out": true + }, + "emph": { + "italic": true + }, + "strong": { + "bold": true + }, + "hr": { + "color": "#737994", + "format": "\n--------\n" + }, + "item": { + "block_prefix": "• " + }, + "enumeration": { + "block_prefix": ". " + }, + "task": { + "ticked": "[✓] ", + "unticked": "[ ] " + }, + "link": { + "color": "#8caaee", + "underline": true + }, + "link_text": { + "color": "#babbf1", + "bold": true + }, + "image": { + "color": "#8caaee", + "underline": true + }, + "image_text": { + "color": "#babbf1", + "format": "Image: {{.text}} →" + }, + "code": { + "prefix": " ", + "suffix": " ", + "color": "#ea999c", + "background_color": "#292c3c" + }, + "code_block": { + "color": "#292c3c", + "margin": 2, + "chroma": { + "text": { + "color": "#c6d0f5" + }, + "error": { + "color": "#c6d0f5", + "background_color": "#e78284" + }, + "comment": { + "color": "#737994" + }, + "comment_preproc": { + "color": "#8caaee" + }, + "keyword": { + "color": "#ca9ee6" + }, + "keyword_reserved": { + "color": "#ca9ee6" + }, + "keyword_namespace": { + "color": "#e5c890" + }, + "keyword_type": { + "color": "#e5c890" + }, + "operator": { + "color": "#99d1db" + }, + "punctuation": { + "color": "#949cbb" + }, + "name": { + "color": "#babbf1" + }, + "name_builtin": { + "color": "#ef9f76" + }, + "name_tag": { + "color": "#ca9ee6" + }, + "name_attribute": { + "color": "#e5c890" + }, + "name_class": { + "color": "#e5c890" + }, + "name_constant": { + "color": "#e5c890" + }, + "name_decorator": { + "color": "#f4b8e4" + }, + "name_exception": {}, + "name_function": { + "color": "#8caaee" + }, + "name_other": {}, + "literal": {}, + "literal_number": { + "color": "#ef9f76" + }, + "literal_date": {}, + "literal_string": { + "color": "#a6d189" + }, + "literal_string_escape": { + "color": "#f4b8e4" + }, + "generic_deleted": { + "color": "#e78284" + }, + "generic_emph": { + "color": "#c6d0f5", + "italic": true + }, + "generic_inserted": { + "color": "#a6d189" + }, + "generic_strong": { + "color": "#c6d0f5", + "bold": true + }, + "generic_subheading": { + "color": "#99d1db" + }, + "background": { + "background_color": "#292c3c" + } + } + }, + "table": { + "center_separator": "┼", + "column_separator": "│", + "row_separator": "─" + }, + "definition_list": {}, + "definition_term": {}, + "definition_description": { + "block_prefix": "\n🠶 " + }, + "html_block": {}, + "html_span": {} +} \ No newline at end of file diff --git a/.config/glow/glow.yml b/.config/glow/glow.yml new file mode 100644 index 0000000..fc4e804 --- /dev/null +++ b/.config/glow/glow.yml @@ -0,0 +1,10 @@ +# style name or JSON path (default "auto") +style: "~/.config/glow/macchiato.json" +# show local files only; no network (TUI-mode only) +local: false +# mouse support (TUI-mode only) +mouse: false +# use pager to display markdown +pager: true +# word-wrap at width +width: 80 diff --git a/.config/glow/latte.json b/.config/glow/latte.json new file mode 100644 index 0000000..ba4af96 --- /dev/null +++ b/.config/glow/latte.json @@ -0,0 +1,199 @@ +{ + "document": { + "block_prefix": "\n", + "block_suffix": "\n", + "color": "#4c4f69", + "margin": 2 + }, + "block_quote": { + "indent": 1, + "indent_token": "│ " + }, + "paragraph": {}, + "list": { + "level_indent": 2 + }, + "heading": { + "block_suffix": "\n", + "color": "#4c4f69", + "bold": true + }, + "h1": { + "prefix": "▓▓▓ ", + "suffix": " ", + "color": "#d20f39", + "bold": true + }, + "h2": { + "prefix": "▓▓▓▓ ", + "color": "#fe640b" + }, + "h3": { + "prefix": "▓▓▓▓▓ ", + "color": "#df8e1d" + }, + "h4": { + "prefix": "▓▓▓▓▓▓ ", + "color": "#40a02b" + }, + "h5": { + "prefix": "▓▓▓▓▓▓▓ ", + "color": "#209fb5" + }, + "h6": { + "prefix": "▓▓▓▓▓▓▓▓ ", + "color": "#7287fd" + }, + "text": {}, + "strikethrough": { + "crossed_out": true + }, + "emph": { + "italic": true + }, + "strong": { + "bold": true + }, + "hr": { + "color": "#9ca0b0", + "format": "\n--------\n" + }, + "item": { + "block_prefix": "• " + }, + "enumeration": { + "block_prefix": ". " + }, + "task": { + "ticked": "[✓] ", + "unticked": "[ ] " + }, + "link": { + "color": "#1e66f5", + "underline": true + }, + "link_text": { + "color": "#7287fd", + "bold": true + }, + "image": { + "color": "#1e66f5", + "underline": true + }, + "image_text": { + "color": "#7287fd", + "format": "Image: {{.text}} →" + }, + "code": { + "prefix": " ", + "suffix": " ", + "color": "#e64553", + "background_color": "#e6e9ef" + }, + "code_block": { + "color": "#e6e9ef", + "margin": 2, + "chroma": { + "text": { + "color": "#4c4f69" + }, + "error": { + "color": "#4c4f69", + "background_color": "#d20f39" + }, + "comment": { + "color": "#9ca0b0" + }, + "comment_preproc": { + "color": "#1e66f5" + }, + "keyword": { + "color": "#8839ef" + }, + "keyword_reserved": { + "color": "#8839ef" + }, + "keyword_namespace": { + "color": "#df8e1d" + }, + "keyword_type": { + "color": "#df8e1d" + }, + "operator": { + "color": "#04a5e5" + }, + "punctuation": { + "color": "#7c7f93" + }, + "name": { + "color": "#7287fd" + }, + "name_builtin": { + "color": "#fe640b" + }, + "name_tag": { + "color": "#8839ef" + }, + "name_attribute": { + "color": "#df8e1d" + }, + "name_class": { + "color": "#df8e1d" + }, + "name_constant": { + "color": "#df8e1d" + }, + "name_decorator": { + "color": "#ea76cb" + }, + "name_exception": {}, + "name_function": { + "color": "#1e66f5" + }, + "name_other": {}, + "literal": {}, + "literal_number": { + "color": "#fe640b" + }, + "literal_date": {}, + "literal_string": { + "color": "#40a02b" + }, + "literal_string_escape": { + "color": "#ea76cb" + }, + "generic_deleted": { + "color": "#d20f39" + }, + "generic_emph": { + "color": "#4c4f69", + "italic": true + }, + "generic_inserted": { + "color": "#40a02b" + }, + "generic_strong": { + "color": "#4c4f69", + "bold": true + }, + "generic_subheading": { + "color": "#04a5e5" + }, + "background": { + "background_color": "#e6e9ef" + } + } + }, + "table": { + "center_separator": "┼", + "column_separator": "│", + "row_separator": "─" + }, + "definition_list": {}, + "definition_term": {}, + "definition_description": { + "block_prefix": "\n🠶 " + }, + "html_block": {}, + "html_span": {} +} \ No newline at end of file diff --git a/.config/glow/macchiato.json b/.config/glow/macchiato.json new file mode 100644 index 0000000..6814ff2 --- /dev/null +++ b/.config/glow/macchiato.json @@ -0,0 +1,199 @@ +{ + "document": { + "block_prefix": "\n", + "block_suffix": "\n", + "color": "#cad3f5", + "margin": 2 + }, + "block_quote": { + "indent": 1, + "indent_token": "│ " + }, + "paragraph": {}, + "list": { + "level_indent": 2 + }, + "heading": { + "block_suffix": "\n", + "color": "#cad3f5", + "bold": true + }, + "h1": { + "prefix": "▓▓▓ ", + "suffix": " ", + "color": "#ed8796", + "bold": true + }, + "h2": { + "prefix": "▓▓▓▓ ", + "color": "#f5a97f" + }, + "h3": { + "prefix": "▓▓▓▓▓ ", + "color": "#eed49f" + }, + "h4": { + "prefix": "▓▓▓▓▓▓ ", + "color": "#a6da95" + }, + "h5": { + "prefix": "▓▓▓▓▓▓▓ ", + "color": "#7dc4e4" + }, + "h6": { + "prefix": "▓▓▓▓▓▓▓▓ ", + "color": "#b7bdf8" + }, + "text": {}, + "strikethrough": { + "crossed_out": true + }, + "emph": { + "italic": true + }, + "strong": { + "bold": true + }, + "hr": { + "color": "#6e738d", + "format": "\n--------\n" + }, + "item": { + "block_prefix": "• " + }, + "enumeration": { + "block_prefix": ". " + }, + "task": { + "ticked": "[✓] ", + "unticked": "[ ] " + }, + "link": { + "color": "#8aadf4", + "underline": true + }, + "link_text": { + "color": "#b7bdf8", + "bold": true + }, + "image": { + "color": "#8aadf4", + "underline": true + }, + "image_text": { + "color": "#b7bdf8", + "format": "Image: {{.text}} →" + }, + "code": { + "prefix": " ", + "suffix": " ", + "color": "#ee99a0", + "background_color": "#1e2030" + }, + "code_block": { + "color": "#1e2030", + "margin": 2, + "chroma": { + "text": { + "color": "#cad3f5" + }, + "error": { + "color": "#cad3f5", + "background_color": "#ed8796" + }, + "comment": { + "color": "#6e738d" + }, + "comment_preproc": { + "color": "#8aadf4" + }, + "keyword": { + "color": "#c6a0f6" + }, + "keyword_reserved": { + "color": "#c6a0f6" + }, + "keyword_namespace": { + "color": "#eed49f" + }, + "keyword_type": { + "color": "#eed49f" + }, + "operator": { + "color": "#91d7e3" + }, + "punctuation": { + "color": "#939ab7" + }, + "name": { + "color": "#b7bdf8" + }, + "name_builtin": { + "color": "#f5a97f" + }, + "name_tag": { + "color": "#c6a0f6" + }, + "name_attribute": { + "color": "#eed49f" + }, + "name_class": { + "color": "#eed49f" + }, + "name_constant": { + "color": "#eed49f" + }, + "name_decorator": { + "color": "#f5bde6" + }, + "name_exception": {}, + "name_function": { + "color": "#8aadf4" + }, + "name_other": {}, + "literal": {}, + "literal_number": { + "color": "#f5a97f" + }, + "literal_date": {}, + "literal_string": { + "color": "#a6da95" + }, + "literal_string_escape": { + "color": "#f5bde6" + }, + "generic_deleted": { + "color": "#ed8796" + }, + "generic_emph": { + "color": "#cad3f5", + "italic": true + }, + "generic_inserted": { + "color": "#a6da95" + }, + "generic_strong": { + "color": "#cad3f5", + "bold": true + }, + "generic_subheading": { + "color": "#91d7e3" + }, + "background": { + "background_color": "#1e2030" + } + } + }, + "table": { + "center_separator": "┼", + "column_separator": "│", + "row_separator": "─" + }, + "definition_list": {}, + "definition_term": {}, + "definition_description": { + "block_prefix": "\n🠶 " + }, + "html_block": {}, + "html_span": {} +} \ No newline at end of file diff --git a/.config/glow/mocha.json b/.config/glow/mocha.json new file mode 100644 index 0000000..83957b9 --- /dev/null +++ b/.config/glow/mocha.json @@ -0,0 +1,199 @@ +{ + "document": { + "block_prefix": "\n", + "block_suffix": "\n", + "color": "#cdd6f4", + "margin": 2 + }, + "block_quote": { + "indent": 1, + "indent_token": "│ " + }, + "paragraph": {}, + "list": { + "level_indent": 2 + }, + "heading": { + "block_suffix": "\n", + "color": "#cdd6f4", + "bold": true + }, + "h1": { + "prefix": "▓▓▓ ", + "suffix": " ", + "color": "#f38ba8", + "bold": true + }, + "h2": { + "prefix": "▓▓▓▓ ", + "color": "#fab387" + }, + "h3": { + "prefix": "▓▓▓▓▓ ", + "color": "#f9e2af" + }, + "h4": { + "prefix": "▓▓▓▓▓▓ ", + "color": "#a6e3a1" + }, + "h5": { + "prefix": "▓▓▓▓▓▓▓ ", + "color": "#74c7ec" + }, + "h6": { + "prefix": "▓▓▓▓▓▓▓▓ ", + "color": "#b4befe" + }, + "text": {}, + "strikethrough": { + "crossed_out": true + }, + "emph": { + "italic": true + }, + "strong": { + "bold": true + }, + "hr": { + "color": "#6c7086", + "format": "\n--------\n" + }, + "item": { + "block_prefix": "• " + }, + "enumeration": { + "block_prefix": ". " + }, + "task": { + "ticked": "[✓] ", + "unticked": "[ ] " + }, + "link": { + "color": "#89b4fa", + "underline": true + }, + "link_text": { + "color": "#b4befe", + "bold": true + }, + "image": { + "color": "#89b4fa", + "underline": true + }, + "image_text": { + "color": "#b4befe", + "format": "Image: {{.text}} →" + }, + "code": { + "prefix": " ", + "suffix": " ", + "color": "#eba0ac", + "background_color": "#181825" + }, + "code_block": { + "color": "#181825", + "margin": 2, + "chroma": { + "text": { + "color": "#cdd6f4" + }, + "error": { + "color": "#cdd6f4", + "background_color": "#f38ba8" + }, + "comment": { + "color": "#6c7086" + }, + "comment_preproc": { + "color": "#89b4fa" + }, + "keyword": { + "color": "#cba6f7" + }, + "keyword_reserved": { + "color": "#cba6f7" + }, + "keyword_namespace": { + "color": "#f9e2af" + }, + "keyword_type": { + "color": "#f9e2af" + }, + "operator": { + "color": "#89dceb" + }, + "punctuation": { + "color": "#9399b2" + }, + "name": { + "color": "#b4befe" + }, + "name_builtin": { + "color": "#fab387" + }, + "name_tag": { + "color": "#cba6f7" + }, + "name_attribute": { + "color": "#f9e2af" + }, + "name_class": { + "color": "#f9e2af" + }, + "name_constant": { + "color": "#f9e2af" + }, + "name_decorator": { + "color": "#f5c2e7" + }, + "name_exception": {}, + "name_function": { + "color": "#89b4fa" + }, + "name_other": {}, + "literal": {}, + "literal_number": { + "color": "#fab387" + }, + "literal_date": {}, + "literal_string": { + "color": "#a6e3a1" + }, + "literal_string_escape": { + "color": "#f5c2e7" + }, + "generic_deleted": { + "color": "#f38ba8" + }, + "generic_emph": { + "color": "#cdd6f4", + "italic": true + }, + "generic_inserted": { + "color": "#a6e3a1" + }, + "generic_strong": { + "color": "#cdd6f4", + "bold": true + }, + "generic_subheading": { + "color": "#89dceb" + }, + "background": { + "background_color": "#181825" + } + } + }, + "table": { + "center_separator": "┼", + "column_separator": "│", + "row_separator": "─" + }, + "definition_list": {}, + "definition_term": {}, + "definition_description": { + "block_prefix": "\n🠶 " + }, + "html_block": {}, + "html_span": {} +} \ No newline at end of file diff --git a/.config/nvim/lua/plugins/editor.lua b/.config/nvim/lua/plugins/editor.lua index 18c03f4..2e48c8a 100644 --- a/.config/nvim/lua/plugins/editor.lua +++ b/.config/nvim/lua/plugins/editor.lua @@ -85,4 +85,39 @@ return { { "", "TmuxNavigatePrevious" }, }, }, + + { + "luckasRanarison/nvim-devdocs", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-telescope/telescope.nvim", + "nvim-treesitter/nvim-treesitter", + }, + opts = { + ensure_installed = { + "bash", + "bootstrap~5", + "css", + "eslint", + "fish~3.7", + "html", + "http", + "javascript", + "laravel~10", + "liquid", + "lodash~4", + "lua~5.4", + "markdown", + "nginx", + "node", + "php", + "postgresql~16", + "sass", + "typescript", + "vite", + "vue~3", + "dom", + }, + }, + }, } diff --git a/.gitmodules b/.gitmodules index a7ed98b..108c3ca 100644 --- a/.gitmodules +++ b/.gitmodules @@ -46,3 +46,6 @@ [submodule ".themes/zathura/catppuccin"] path = .themes/zathura/catppuccin url = git@github.com:catppuccin/zathura.git +[submodule ".themes/glamour/catppuccin"] + path = .themes/glamour/catppuccin + url = git@github.com:catppuccin/glamour.git diff --git a/.themes/glamour/catppuccin b/.themes/glamour/catppuccin new file mode 160000 index 0000000..3ef2c95 --- /dev/null +++ b/.themes/glamour/catppuccin @@ -0,0 +1 @@ +Subproject commit 3ef2c9533b6d3c4d6309a850765500179cf32d1c