Compare commits

...

2 Commits

@ -3,3 +3,13 @@ include ro-common.inc
# Enable notifications # Enable notifications
dbus-user.talk org.freedesktop.Notifications dbus-user.talk org.freedesktop.Notifications
dbus-user.talk org.freedesktop.portal.Desktop
blacklist /mnt
blacklist /run/media
# allow access to config
noblacklist ${HOME}/.config/discord-screenaudio
mkdir ${HOME}/.config/discord-screenaudio
whitelist ${HOME}/.config/discord-screenaudio

@ -18,7 +18,7 @@ select = "underline"
[editor.statusline] [editor.statusline]
left = ["mode", "spinner", "spacer", "file-name"] left = ["mode", "spinner", "spacer", "file-name"]
center = [] center = []
right = ["diagnostics", "selections", "position", "position-percentage", "separator", "file-encoding", "file-line-ending", "file-type", "separator", "spacer", "version-control", "spacer"] right = ["diagnostics", "selections", "position", "position-percentage", "primary-selection-length", "separator", "file-encoding", "file-line-ending", "file-type", "separator", "spacer", "version-control", "spacer"]
separator = " │" separator = " │"
[editor.lsp] [editor.lsp]

@ -39,6 +39,31 @@ command = "vls"
args = [] args = []
[language-server.pest-lsp]
command = "pest-language-server"
args = []
[language-server.svelteserver]
command = "svelteserver"
args = ["--stdio"]
[language-server.svelteserver.config.configuration.typescript]
inlayHints.parameterTypes.enabled = true
inlayHints.variableTypes.enabled = true
inlayHints.propertyDeclarationTypes.enabled = true
inlayHints.functionLikeReturnTypes.enabled = true
inlayHints.enumMemberValues.enabled = true
inlayHints.parameterNames.enabled = "all"
[language-server.svelteserver.config.configuration.javascript]
inlayHints.parameterTypes.enabled = true
inlayHints.variableTypes.enabled = true
inlayHints.propertyDeclarationTypes.enabled = true
inlayHints.functionLikeReturnTypes.enabled = true
inlayHints.enumMemberValues.enabled = true
inlayHints.parameterNames.enabled = "all"
[language-server.hx-lsp] [language-server.hx-lsp]
command = "hx-lsp" command = "hx-lsp"
args = [] args = []
@ -47,17 +72,33 @@ args = []
[[language]] [[language]]
name = "typescript" name = "typescript"
language-servers = ["typescript-language-server", "biome", "graphql-language-service", { name = "efm", only-features = ["diagnostics", "format"]}, "hx-lsp"] language-servers = [
"typescript-language-server",
"biome",
"graphql-language-service",
{ name = "efm", only-features = [
"diagnostics",
"format",
] },
"hx-lsp"
]
auto-format = true auto-format = true
formatter = { command = "biome" , args = ["format", "--stdin-file-path=file.ts"] } formatter = { command = "biome", args = [
"format",
"--stdin-file-path=file.ts",
] }
indent = { tab-width = 4, unit = " " } indent = { tab-width = 4, unit = " " }
[[language]] [[language]]
name = "javascript" name = "javascript"
language-servers = ["typescript-language-server", "biome", { name = "efm", only-features = ["diagnostics", "format"]}, "hx-lsp"] language-servers = ["typescript-language-server", "biome", { name = "efm", only-features = ["diagnostics", "format"]}, "hx-lsp"]
auto-format = true auto-format = true
formatter = { command = "biome" , args = ["format", "--stdin-file-path=file.js"] } formatter = { command = "biome", args = [
"format",
"--stdin-file-path=file.js",
] }
indent = { tab-width = 4, unit = " " } indent = { tab-width = 4, unit = " " }
@ -65,7 +106,6 @@ indent = { tab-width = 4, unit = " " }
name = "json" name = "json"
formatter = { command = "biome" , args = ["format", "--stdin-file-path=file.json"] } formatter = { command = "biome" , args = ["format", "--stdin-file-path=file.json"] }
[[language]] [[language]]
name = "handlebars" name = "handlebars"
injection-regex = "hbs" injection-regex = "hbs"
@ -89,7 +129,7 @@ indent = { tab-width = 4, unit = " " }
file-types = ["roc"] file-types = ["roc"]
shebangs = ["roc"] shebangs = ["roc"]
scope = "source.roc" scope = "source.roc"
comment-token = "#" comment-tokens = ["#"]
roots = [] roots = []
formatter = { command = "roc", args = ['format', '--stdin', '--stdout'] } formatter = { command = "roc", args = ['format', '--stdin', '--stdout'] }
grammar = "roc" grammar = "roc"
@ -98,7 +138,7 @@ grammar = "roc"
[[language]] [[language]]
name = "bash" name = "bash"
auto-format = true auto-format = true
formatter = { command = "shfmt", args = ["-s", "-sr", "-"]} formatter = { command = "shfmt", args = ["-s", "-sr", "-"] }
[language.auto-pairs] [language.auto-pairs]
'(' = ')' '(' = ')'
@ -117,9 +157,8 @@ scope = "source.nu"
injection-regex = "nu" injection-regex = "nu"
file-types = ["nu", "nuon"] file-types = ["nu", "nuon"]
shebangs = ["nu"] shebangs = ["nu"]
comment-token = "#"
indent = { tab-width = 2, unit = " " } indent = { tab-width = 2, unit = " " }
language-servers = [ "nu-lsp" ] language-servers = ["nu-lsp"]
[[grammar]] [[grammar]]
name = "nu" name = "nu"
@ -144,7 +183,7 @@ auto-format = true
indent = { tab-width = 4, unit = " " } indent = { tab-width = 4, unit = " " }
file-types = ["pug"] file-types = ["pug"]
scope = "source.pug" scope = "source.pug"
comment-token = "//" comment-tokens = ["//"]
roots = [] roots = []
grammar = "pug" grammar = "pug"
@ -160,6 +199,11 @@ name = "pug"
source = { git = "https://github.com/zealot128/tree-sitter-pug", rev = "a7ff31a38908df9b9f34828d21d6ca5e12413e18" } source = { git = "https://github.com/zealot128/tree-sitter-pug", rev = "a7ff31a38908df9b9f34828d21d6ca5e12413e18" }
[[language]]
name = "svelte"
auto-format = true
language-servers = [ "svelteserver", "biome" ]
[[language]] [[language]]
name = "astro" name = "astro"
language-servers = [ "astro-ls", "hx-lsp" ] language-servers = [ "astro-ls", "hx-lsp" ]
@ -172,7 +216,7 @@ auto-format = true
indent = { tab-width = 4, unit = " " } indent = { tab-width = 4, unit = " " }
file-types = ["jora"] file-types = ["jora"]
scope = "source.jora" scope = "source.jora"
comment-token = "//" comment-tokens = ["//"]
roots = [] roots = []
language-servers = [ "hx-lsp" ] language-servers = [ "hx-lsp" ]
grammar = "jora" grammar = "jora"
@ -186,9 +230,42 @@ grammar = "jora"
[[language]] [[language]]
name = "vue" name = "vue"
auto-format = true auto-format = true
formatter = { command = "biome" , args = ["format", "--stdin-file-path=file.vue"] } formatter = { command = "biome", args = [
language-servers = [ "vls" ] "format",
"--stdin-file-path=file.vue",
] }
language-servers = ["vls"]
[[language]] [[language]]
name = "env" name = "env"
file-types = [{ glob = ".env" }, { glob = ".env.*" }, { glob = ".envrc" }, { glob = ".envrc.*" }, { glob = "*.env" }] file-types = [
{ glob = ".env" },
{ glob = ".env.*" },
{ glob = ".envrc" },
{ glob = ".envrc.*" },
{ glob = "*.env" },
]
[[language]]
name = "pest"
language-servers = ["pest-lsp"]
auto-format = true
indent = { tab-width = 2, unit = " " }
file-types = ["pest"]
shebangs = ["pest"]
scope = "source.pest"
comment-tokens = ["//"]
grammar = "pest"
[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'
[[grammar]]
name = "pest"
source = { git = "https://github.com/pest-parser/tree-sitter-pest", rev = "a8a98a824452b1ec4da7f508386a187a2f234b85" }

@ -0,0 +1,71 @@
(line_comment) @comment
(block_comment) @comment
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
((identifier) @variable)
((builtin) @type)
((const) @constant)
[
(string)
(character)
] @string
[
"~"
"|"
] @function
[
"="
"+"
"*"
"&"
"_"
"^"
"@"
"$"
"!"
"?"
".."
] @operator
[
(string)
(character)
] @string
[
"PUSH"
"PEEK"
"POP"
"SOI"
"EOI"
"ANY"
] @keyword
[
"~"
"|"
"="
"+"
"*"
"&"
"_"
"^"
"@"
"$"
"!"
"?"
".."
] @operator

@ -76,9 +76,9 @@ $env.GIT_PAGER = "most"
{{/if}} {{/if}}
{{# if flags.unix}} {{# if flags.unix}}
$env.LC_ALL = en_GB.UTF-8 $env.LC_ALL = "en_GB.UTF-8"
{{/if}} {{/if}}
$env.HELIX_RUNTIME = {{dirs.config}}/helix/runtime $env.HELIX_RUNTIME = "{{dirs.config}}/helix/runtime"
{{#if-installed nix}} {{#if-installed nix}}
if $env.NIX_PATH? != null { if $env.NIX_PATH? != null {
@ -94,3 +94,7 @@ zoxide init nushell | save -f ~/.zoxide.nu
{{#if-installed ltex-ls}} {{#if-installed ltex-ls}}
$env.LTEX_GLOBAL_STORAGE_PATH = "{{dirs.data}}/ltex/" $env.LTEX_GLOBAL_STORAGE_PATH = "{{dirs.data}}/ltex/"
{{/if-installed}} {{/if-installed}}
{{#if-installed librewolf}}
$env.BROWSER = "librewolf"
{{/if-installed}}

@ -2,7 +2,7 @@ load-env (fnm env --shell bash
| lines | lines
| str replace 'export ' '' | str replace 'export ' ''
| str replace -a '"' '' | str replace -a '"' ''
| split column = | split column "="
| rename name value | rename name value
| where name != "FNM_ARCH" and name != "PATH" | where name != "FNM_ARCH" and name != "PATH"
| reduce -f {} {|it, acc| $acc | upsert $it.name $it.value } | reduce -f {} {|it, acc| $acc | upsert $it.name $it.value }

@ -2,15 +2,12 @@
[user] [user]
email = trivernis@protonmail.com email = trivernis@protonmail.com
name = trivernis name = trivernis
signingkey = 6EBCBA37E8CFF6A9
[credential "https://git.trivernis.net"] [credential "https://git.trivernis.net"]
username = Trivernis username = Trivernis
[credential "https://github.com"] [credential "https://github.com"]
username = Trivernis username = Trivernis
[credential] [credential]
helper = store helper = store
[commit]
gpgSign = true
[tag] [tag]
forceSignAnnotated = true forceSignAnnotated = true
[filter "lfs"] [filter "lfs"]

@ -27,8 +27,6 @@ config.wezterm = { font_size = 12 }
-- all software modules / package groups -- all software modules / package groups
config.modules = { config.modules = {
core = default_mod { core = default_mod {
'starship',
'wezterm',
'yazi', 'yazi',
'bottom', 'bottom',
'thefuck', 'thefuck',

Loading…
Cancel
Save