Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: add some real configuration to the helix text editor and IDE #27

Merged
merged 11 commits into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ export PATH="$HOME/.local/bin:$EMACS_HOME/bin:$CARGO_HOME/bin:$PATH"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$MUJOCO_BIN"

# changes the editor in the terminal, to edit long commands.
export EDITOR='vim'
export VISAL='vim'
export EDITOR='helix'
export VISAL='helix'
set -o vi

### SET MANPAGER
Expand Down
6 changes: 3 additions & 3 deletions .config/dmenu-extended/config/dmenuExtended_preferences.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"path_shellCommand": "~/.dmenuEextended_shellCommand.sh",
"prompt": "Open:",
"scan_hidden_folders": false,
"terminal": "st",
"terminal_editor": "vim",
"terminal": "alacritty",
"terminal_editor": "helix",
"valid_extensions": [
"py",
"svg",
Expand Down Expand Up @@ -73,4 +73,4 @@
"~/"
],
"webbrowser": "xdg-open"
}
}
2 changes: 1 addition & 1 deletion .config/gh/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# What protocol to use when performing git operations. Supported values: ssh, https
git_protocol: https
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.
editor: vim
editor: helix
# When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled
prompt: enabled
# A pager program to send command output to, e.g. "less". Set the value to "cat" to disable the pager.
Expand Down
2 changes: 1 addition & 1 deletion .config/git/config
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
defaultBranch = main

[core]
editor = vim
editor = helix
pager = delta

[delta]
Expand Down
53 changes: 52 additions & 1 deletion .config/helix/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,62 @@ theme = "onedark"
[editor]
line-number = "relative"
mouse = false
scrolloff = 3
middle-click-paste = false
scroll-lines = 3
shell = ["nu", "-c"]
cursorline = false
gutters = ["diagnostics", "line-numbers"]
auto-completion = true
auto-format = false
idle-timeout = 400
completion-trigger-len = 2
auto-info = true
true-color = false
rulers = []
color-modes = false
auto-pairs = true

[editor.statusline]
left = ["mode", "spinner"]
center = ["file-name"]
right = [
"diagnostics", "selections", "position", "file-encoding", "file-line-ending", "file-type"
]
separator = "│"

[editor.lsp]
display-messages = false
auto-signature-help = true
display-signature-help-docs = true

[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"

[editor.file-picker]
hidden = false
hidden = true
parents = true
ignore = true
git-ignore = true
git-global = true
git-exclude = true

[editor.search]
smart-case = true
wrap-around = true

[editor.whitespace]
render = "all"

[editor.whitespace.characters]
space = "·"
nbsp = "⍽"
tab = "→"
newline = "⏎"
tabpad = "·" # Tabs will look like "→···" (depending on tab width)

[editor.indent-guides]
render = false
character = "│"
9 changes: 9 additions & 0 deletions .config/helix/languages.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[[language]]
name = "oberon"
scope = "source.oberon"
injection-regex = "oberon"
file-types = ["obn", "Mod", "mod"]
roots = []
comment-token = "(*"
indent = { tab-width = 4, unit = " " }
grammar = "pascal"
Loading