Add things for markdown

main
Julius Riegel 6 months ago
parent 6375b48c70
commit d3ef80baab

@ -0,0 +1,3 @@
--enable-features=WaylandWindowDecorations
--ozone-platform-hint=auto
--enable-features=WebRTCPipeWireCapturer

@ -102,3 +102,9 @@ language-servers = [ "nu-lsp" ]
[[grammar]] [[grammar]]
name = "nu" name = "nu"
source = { git = "https://github.com/nushell/tree-sitter-nu", rev = "358c4f509eb97f0148bbd25ad36acc729819b9c1" } source = { git = "https://github.com/nushell/tree-sitter-nu", rev = "358c4f509eb97f0148bbd25ad36acc729819b9c1" }
[[language]]
name = "markdown"
# formatter = { command = "comrak", args = ["-t", "commonmark", "--gfm", "--unsafe", "-e", "table"] }
formatter = { command = "prettier", args = ["--stdin-filepath=source.md"] }

@ -64,6 +64,7 @@
"markup.link.text" = "pink" "markup.link.text" = "pink"
"markup.quote" = { fg = "yellow", modifiers = ["italic"] } "markup.quote" = { fg = "yellow", modifiers = ["italic"] }
"markup.raw" = { fg = "foreground" } "markup.raw" = { fg = "foreground" }
"markup.raw.inline" = { fg = "pink" }
"ui.explorer.file" = { fg = "foreground" } "ui.explorer.file" = { fg = "foreground" }
"ui.explorer.dir" = { fg = "cyan" } "ui.explorer.dir" = { fg = "cyan" }

@ -7,6 +7,10 @@ export def `follow json-lines` [] {
lines | each {|it| try { $it | from json } catch { {msg: $it} } | table --expand | print} | ignore lines | each {|it| try { $it | from json } catch { {msg: $it} } | table --expand | print} | ignore
} }
export def `follow nuon-lines` [] {
lines | each {|it| try { $it | from nuon } catch { {msg: $it} } | table --expand | print} | ignore
}
def --wrapped with-flag [...flag] { def --wrapped with-flag [...flag] {
if ($in | is-empty) { [] } else { [...$flag $in] } if ($in | is-empty) { [] } else { [...$flag $in] }
} }

@ -30,6 +30,7 @@ config.modules = {
'helix', 'helix',
'zellij', 'zellij',
'broot', 'broot',
'yazi',
'bottom', 'bottom',
'thefuck', 'thefuck',
'hyperfine', 'hyperfine',
@ -63,6 +64,8 @@ config.modules = {
'bat', 'bat',
'cz-cli', 'cz-cli',
'plantuml', 'plantuml',
'websocat',
'pandoc',
}, },
gui = mod { gui = mod {
'kdePackages.breeze-icons', 'kdePackages.breeze-icons',
@ -80,6 +83,7 @@ config.modules = {
extras = mod { extras = mod {
'librewolf', 'librewolf',
'spotify', 'spotify',
'libsForQt5.plasma-browser-integration',
}, },
docker = mod { docker = mod {
'docker', 'docker',
@ -127,6 +131,14 @@ config.modules = {
graphql = mod { graphql = mod {
'nodePackages.get-graphql-schema', 'nodePackages.get-graphql-schema',
}, },
yaml = mod {
'yaml-language-server',
},
markdown = mod {
'marksman',
'markdown-oxide',
'nodePackages.prettier',
},
terraform = mod { terraform = mod {
'terraform-ls', 'terraform-ls',
}, },

Loading…
Cancel
Save