Skip to content

Instantly share code, notes, and snippets.

@n-ce
Created April 13, 2024 17:15
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 n-ce/0c603c42f234b1873e43efdce9665abe to your computer and use it in GitHub Desktop.
Save n-ce/0c603c42f234b1873e43efdce9665abe to your computer and use it in GitHub Desktop.
Helix Config & LSP
theme = "onedarker"
[editor]
auto-save = true
[editor.gutters]
layout = ["line-numbers", "diff"]
[editor.gutters.line-numbers]
min-width = 0
[editor.soft-wrap]
enable = true
wrap-indicator = "⌉"
[editor.statusline]
left = ["mode","diagnostics","spinner", "file-name", "read-only-indicator", "file-modification-indicator"]
right = ["selections", "register", "position", "file-encoding"]
mode.normal = 'N'
mode.insert = 'I'
mode.select = 'S'
[keys.insert]
C-s = ":w"
C-f = "file_picker"
[keys.normal]
r = ":w"
f = "file_picker"
F = "file_picker_in_current_directory"
Y = "yank_main_selection_to_clipboard"
[[language]]
name = "jsx"
auto-format = true
[[language]]
name = "tsx"
auto-format = true
[[language]]
name = "javascript"
auto-format = true
[[language]]
name = "typescript"
auto-format = true
[[language]]
name = "html"
auto-format = true
[[language]]
name = "css"
auto-format = true
[[language]]
name = "python"
auto-format = true
language-servers = [ "pyright" ]
formatter = { command = "black", args = ["--quiet", "-"] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment