Some updates
This commit is contained in:
parent
3de3192626
commit
bdda099700
21
config.toml
21
config.toml
|
@ -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"
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
||||||
|
@ -19,6 +20,7 @@ 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"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user