Skip to content

Commit

Permalink
add helix
Browse files Browse the repository at this point in the history
  • Loading branch information
Waylon S. Walker committed Oct 11, 2024
1 parent 679fa67 commit 71b9b29
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,32 @@ RUN python -m pip install uv && \
lolcat \
visidata \
waylonwalker --system

RUN bob install nightly && \
bob use nightly

RUN mkdir /root/downloads && \
cd /root/downloads && \
wget https://github.com/helix-editor/helix/releases/download/24.07/helix-24.07-x86_64-linux.tar.xz && \
tar -xf helix-24.07-x86_64-linux.tar.xz && \
mv helix-24.07-x86_64-linux/hx /usr/local/bin/hx && \
mkdir -p /usr/local/share/helix/runtime && \
mv helix-24.07-x86_64-linux/runtime/* /usr/local/share/helix/runtime/ && \
cd .. && \
rm -rf /root/downloads

# COPY kickstart.nvim /root/.config/nvim

# RUN git clone https://github.com/waylonwalker/kickstart.nvim ~/.config/nvim
COPY zsh /root/devtainer/zsh
COPY bin /root/devtainer/bin
COPY nvim /root/devtainer/nvim
COPY helix /root/devtainer/helix
WORKDIR /root/devtainer
RUN stow zsh
RUN stow bin
RUN stow bin -t /usr/local/bin
RUN stow nvim
RUN stow helix
RUN nvim --headless "+Lazy! restore" +qa
# RUN stow lazyvim
# WORKDIR /root
Expand Down
52 changes: 52 additions & 0 deletions helix/.config/helix/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
theme = "dracula_transparant"

[editor]
line-number = "relative"
shell = ["zsh", "-c"]

[keys.insert]
j = { j = "normal_mode" }

[keys.select]
y = ['yank', 'yank_to_clipboard']
d = ["yank_main_selection_to_clipboard", "delete_selection"]
p = "paste_clipboard_after"
P = "paste_clipboard_before"

[keys.normal." "]
y = 'yank'
d = "delete_selection"
p = "paste_after"
P = "paste_before"

[keys.normal]
y = ['yank', 'yank_to_clipboard']
p = "paste_clipboard_after"
P = "paste_clipboard_before"

esc = ["collapse_selection", "keep_primary_selection"]
0 = "goto_line_start"
"$" = "goto_line_end"
"^" = "goto_first_nonwhitespace"
G = "goto_file_end"
Y = ["extend_to_line_end", "yank_main_selection_to_clipboard", "collapse_selection"]
"C-n" = "goto_next_diag"
"C-p" = "goto_prev_diag"

[keys.normal.space]
p = "file_picker"

[keys.normal.g.e]
c = ":config-open"
t = ":open ~/.tmux.conf"
a = ":open ~/.alias"
z = ":open ~/.zshrc"
l = ":open ~/.config/helix/languages.toml"

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

[editor.file-picker]
hidden = false
20 changes: 20 additions & 0 deletions helix/.config/helix/languages.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[[language]]
name = "python"
language-servers = ["pylsp"]
roots = [".git"]
workspace-lsp-roots = ["src/updater"]
auto-format = true

[language-server.pylsp.config.pylsp.plugins]
flake8 = {enabled = true, ignore = ["E501"]}
autopep8 = {enabled = false}
mccabe = {enabled = false}
pycodestyle = {enabled = false}
pyflakes = {enabled = false}
pylint = {enabled = false}
yapf = {enabled = false}
ruff = { enabled = false}

[language.formatter]
command = "ruff"
args = ["format", "--line-length", "88", "-"]
9 changes: 9 additions & 0 deletions helix/.config/helix/themes/dracula_transparant.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
inherits = "dracula"
"ui.background" = { fg = "foreground" }
"ui.menu" = { fg = "white" }
"ui.popup" = { fg = "white" }
"ui.window" = { fg = "white" }
"ui.help" = { fg = "light-gray" }

"ui.statusline" = { fg = "gray" }
"ui.statusline.inactive" = { fg = "black" }

0 comments on commit 71b9b29

Please sign in to comment.