Neovim: updated todo icon for test, ohmyposh: updated themes to include extra spaces after icons

This commit is contained in:
Kyren223
2024-07-06 00:59:54 +03:00
parent 9ec1b5f213
commit f66b028b72
3 changed files with 8 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ return {
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
require('todo-comments').setup({
signs = true, -- show icons in the signs column
signs = true, -- show icons in the signs column
sign_priority = 8, -- sign priority
keywords = {
@@ -37,7 +37,7 @@ return {
PERF = { icon = '', color = 'performance', alt = { 'PERFORMANCE' } },
HACK = { icon = '', color = 'warning', alt = { 'SMELL', 'CODE SMELL', 'BAD', 'BAD PRACTICE' } },
NOTE = { icon = '', color = 'hint', alt = { 'INFO' } },
TEST = { icon = ' ', color = 'test', alt = { 'TESTING', 'PASSED', 'FAILED' } },
TEST = { icon = '󰙨 ', color = 'test', alt = { 'TESTING', 'PASSED', 'FAILED' } },
UNSAFE = { icon = '󰍛 ', color = 'error', alt = { 'SAFETY' } },
},
@@ -55,10 +55,10 @@ return {
highlight = {
multiline = true,
multiline_pattern = '^.', -- lua pattern to match the next multiline from the start of the matched keyword
multiline_context = 10, -- extra lines that will be re-evaluated when changing a line
before = '', -- "fg" or "bg" or empty
keyword = 'wide', -- "fg", "bg", "wide", "wide_bg", "wide_fg" or empty. (wide and wide_bg is the same as bg, but will also highlight surrounding characters, wide_fg acts accordingly but with fg)
after = 'fg', -- "fg" or "bg" or empty
multiline_context = 10, -- extra lines that will be re-evaluated when changing a line
before = '', -- "fg" or "bg" or empty
keyword = 'wide', -- "fg", "bg", "wide", "wide_bg", "wide_fg" or empty. (wide and wide_bg is the same as bg, but will also highlight surrounding characters, wide_fg acts accordingly but with fg)
after = 'fg', -- "fg" or "bg" or empty
pattern = {
[[.*<(KEYWORDS)\s*:]],
-- [[.*<(KEYWORDS)\s*]],

View File

@@ -26,7 +26,7 @@ blocks:
trailing_diamond: "\ue0b4"
background: p:black
foreground: p:blue
template: " {{ .HEAD }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if and (or (.Working.Changed) (.Staging.Changed)) (or (gt .Ahead 0) (gt .Behind 0)) }} | {{ else }} {{ end }}{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}"
template: " {{ .HEAD }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if and (or (.Working.Changed) (.Staging.Changed)) (or (gt .Ahead 0) (gt .Behind 0)) }} | {{ else }} {{ end }}{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}"
properties:
fetch_status: true
branch_icon: " "

View File

@@ -68,7 +68,7 @@ blocks:
trailing_diamond: "\ue0b4"
background: p:black
foreground: p:blue
template: " {{ .HEAD }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if and (or (.Working.Changed) (.Staging.Changed)) (or (gt .Ahead 0) (gt .Behind 0)) }} | {{ else }} {{ end }}{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}"
template: " {{ .HEAD }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if and (or (.Working.Changed) (.Staging.Changed)) (or (gt .Ahead 0) (gt .Behind 0)) }} | {{ else }} {{ end }}{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}"
properties:
fetch_status: true
branch_icon: " "