Some updates

This commit is contained in:
Ben Shiller 2025-01-29 21:36:00 -06:00
parent 3de3192626
commit bdda099700
Signed by: shillerben
GPG Key ID: 7B4602B1FBF82986
2 changed files with 18 additions and 7 deletions

View File

@ -1,4 +1,14 @@
theme = "onedark" # dark themes
# theme = "ao"
theme = "dracula_at_night"
# theme = "molokai"
# theme = "new_moon"
# theme = "onedark"
# theme = "everblush"
# light themes
# theme = "modus_operandi"
# theme = "emacs"
[editor] [editor]
true-color = true true-color = true
@ -8,18 +18,15 @@ text-width = 120
end-of-line-diagnostics = "hint" end-of-line-diagnostics = "hint"
[editor.inline-diagnostics] [editor.inline-diagnostics]
cursor-line = "warning" # show warnings and errors on the cursorline inline cursor-line = "warning"
[editor.cursor-shape] [editor.cursor-shape]
insert = "bar" insert = "bar"
#normal = "block"
#select = "underline"
[editor.statusline] [editor.statusline]
left = ["mode", "file-modification-indicator", "file-name", "read-only-indicator", "version-control"] left = ["mode", "file-modification-indicator", "file-name", "read-only-indicator", "version-control"]
center = [] center = []
right = ["diagnostics", "selections", "position"] right = ["diagnostics", "selections", "position"]
#separator = "│"
mode.normal = "NORMAL" mode.normal = "NORMAL"
mode.insert = "INSERT" mode.insert = "INSERT"
mode.select = "SELECT" mode.select = "SELECT"
@ -41,7 +48,7 @@ newline = "⏎"
[editor.indent-guides] [editor.indent-guides]
render = true render = true
character = "┆" # Some characters that work well: "▏", "╎", "┆", "┊", "⸽" character = "︳" # Some characters that work well: "︳", "▏", "╎", "┆", "┊", "⸽"
skip-levels = 1 skip-levels = 1
[editor.soft-wrap] [editor.soft-wrap]
@ -50,3 +57,5 @@ wrap-indicator = "" # set wrap-indicator to "" to hide it
#max-wrap = 25 # increase value to reduce forced mid-word wrapping #max-wrap = 25 # increase value to reduce forced mid-word wrapping
#max-indent-retain = 0 #max-indent-retain = 0
[keys.normal]
C-k = ":format"

View File

@ -3,6 +3,7 @@ name = "python"
file-types = ["py"] file-types = ["py"]
comment-tokens = "#" comment-tokens = "#"
indent = { tab-width = 4, unit = " "} indent = { tab-width = 4, unit = " "}
formatter = { command = "ruff", args = ["format"] }
language-servers = ["pylsp", "python-ruff"] language-servers = ["pylsp", "python-ruff"]
roots = ["setup.py", "pyproject.toml"] roots = ["setup.py", "pyproject.toml"]
@ -18,7 +19,8 @@ args = ["server"]
name = "go" name = "go"
file-types = ["go"] file-types = ["go"]
comment-tokens = "//" comment-tokens = "//"
indent = { tab-width = 4, unit = "\t"} indent = { tab-width = 4, unit = "\t" }
formatter = { command = "go", args = ["fmt"] }
language-servers = ["gopls"] language-servers = ["gopls"]
roots = ["go.mod"] roots = ["go.mod"]