Skip to content

Instantly share code, notes, and snippets.

@doole
Last active April 25, 2024 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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"
[editor]
line-number = "relative"
cursorline = true
color-modes = true
true-color = true
auto-pairs = true
bufferline = "multiple"
# gutters = ["diagnostics", "spacer", "line-numbers", "spacer", "diff"]
[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
[language-server.solargraph]
config = { diagnostics = true, formatting = false }
[[language]]
name = "ruby"
formatter = { command = "rubocop", args = [
"--stdin",
"%",
"-a",
"--stderr",
"--fail-level",
"fatal",
] }
auto-format = false
language-servers = [{ name = "solargraph" }]
[[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"
formatter = { command = "black", args = ["--quiet", "-"] }
auto-format = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment