Bastien Vigneron
2 min readNov 19, 2024

--

Sure:

```

theme = "catppuccin_mocha_bastien"

[editor]

line-number = "relative"

mouse = true

shell = ["zsh", "-c"]

gutters = ["diagnostics", "spacer", "line-numbers", "spacer", "diff"]

# Completion

completion-trigger-len = 2

auto-completion = true

completion-replace = true

preview-completion-insert = false

# Auto

auto-format = true

auto-save = true

auto-info = true

auto-pairs = true

# Guides

cursorline = true

cursorcolumn = true

idle-timeout = 50

color-modes = true

bufferline = "never"

rulers = [80, 120]

[editor.inline-diagnostics]

# cursor-line = "warning"

cursor-line = "hint"

[editor.smart-tab]

enable = true

supersede-menu = true

[editor.file-picker]

hidden = true

git-ignore = true

[editor.cursor-shape]

insert = "bar"

normal = "block"

select = "underline"

[editor.statusline]

left = [

"mode",

"separator",

"spinner",

"separator",

"file-name",

"version-control",

"register",

"primary-selection-length",

]

center = [

"separator",

"file-modification-indicator",

"position-percentage",

"separator",

]

right = [

"diagnostics",

"workspace-diagnostics",

"selections",

"position",

"file-encoding",

"file-line-ending",

"separator",

"file-type",

]

# separator = ""

mode.normal = "NORMAL"

mode.insert = "INSERT"

mode.select = "SELECT"

[editor.indent-guides]

render = true

[editor.lsp]

snippets = true

display-inlay-hints = false

display-messages = true

display-signature-help-docs = true

auto-signature-help = true

[editor.soft-wrap]

enable = true

[keys.normal]

"backspace" = { r = ":sh cargo run", b = ":sh cargo build", a = "code_action", i = ":toggle lsp.display-inlay-hints", w = ":toggle soft-wrap.enable" }

C-x = "code_action"

C-j = ["extend_to_line_bounds", "delete_selection", "paste_after"]

C-p = "jump_forward"

C-k = [

"extend_to_line_bounds",

"delete_selection",

"move_line_up",

"paste_before",

]

esc = ["collapse_selection", "keep_primary_selection"]

D = ["ensure_selections_forward", "extend_to_line_end", "delete_selection"]

"}" = ["move_next_sub_word_start"]

"{" = ["move_prev_sub_word_start"]

"ret" = "insert_mode"

y = "yank_to_clipboard"

p = "paste_clipboard_after"

P = "paste_clipboard_before"

C-g = [":new", ":insert-output lazygit", ":buffer-close!", ":redraw"]

S = "move_parent_node_start"

E = "move_parent_node_end"

C-l = ":theme github_light_high_contrast"

[keys.insert]

C-x = "completion"

A-left = "goto_line_start"

A-right = "goto_line_end_newline"

C-c = "normal_mode"

```

--

--

Responses (2)