Skip to content

Instantly share code, notes, and snippets.

@doole
Last active January 10, 2025 17:12
Show Gist options
  • Save doole/ed09bd1de58a0298e6ab35908f99db3d to your computer and use it in GitHub Desktop.
Save doole/ed09bd1de58a0298e6ab35908f99db3d to your computer and use it in GitHub Desktop.
theme = "catppuccin_mocha" # nightfox | dracula | sonokai | tokyonight
[editor]
line-number = "relative"
cursorline = true
color-modes = true
true-color = true
auto-pairs = true
# auto-format = false
bufferline = "multiple"
# end-of-line-diagnostics = "hint"
# [editor.inline-diagnostics]
# cursor-line = "warning"
[editor.indent-guides]
render = true
skip-levels = 1
[editor.statusline]
left = ["mode", "spinner", "file-name", "file-modification-indicator"]
center = ["version-control"]
right = [
"diagnostics",
"selections",
"position",
"position-percentage",
"file-encoding",
"file-line-ending",
"file-type",
]
separator = "│"
[editor.lsp]
display-messages = true
display-inlay-hints = true
[editor.file-picker]
hidden = false
[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"
[editor.whitespace.render]
space = "none"
tab = "all"
newline = "all"
[editor.whitespace.characters]
space = "·"
nbsp = "⍽"
tab = "→"
newline = "¬"
# newline = "⏎"
tabpad = "·"
[editor.soft-wrap]
enable = true
max-wrap = 25 # increase value to reduce forced mid-word wrapping
max-indent-retain = 0
[keys.normal]
A-x = "extend_to_line_bounds"
X = ["extend_line_up", "extend_to_line_bounds"]
[keys.select]
A-x = "extend_to_line_bounds"
X = ["extend_line_up", "extend_to_line_bounds"]
[[language]]
name = "ruby"
formatter = { command = "rubocop", args = [
"--stdin",
"%",
"-a",
"--stderr",
"--fail-level",
"fatal",
] }
auto-format = false
language-servers = [{ name = "solargraph" }]
[language-server.solargraph]
config = { diagnostics = true, formatting = false }
[[language]]
name = "javascript"
formatter = { command = 'deno', args = ["fmt", "-", "--ext", "js"] }
auto-format = true
[[language]]
name = "json"
formatter = { command = 'deno', args = ["fmt", "-", "--ext", "json"] }
[[language]]
name = "markdown"
formatter = { command = 'deno', args = ["fmt", "-", "--ext", "md"] }
auto-format = true
[[language]]
name = "typescript"
formatter = { command = 'deno', args = ["fmt", "-", "--ext", "ts"] }
auto-format = true
[[language]]
name = "toml"
formatter = { command = "taplo", args = ["format", "-"] }
auto-format = true
[[language]]
name = "python"
language-servers = ["pylsp"]
formatter = { command = "black", args = ["--quiet", "-"] }
auto-format = true
[language-server.pylsp.config.pylsp]
plugins.ruff.enabled = true
plugins.black.enabled = true
[language-server.yaml-language-server.config.yaml]
format = { enable = true }
validation = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment