feat: add moar lsp/aliases and upgrade neovim/runtimes (#52)

A lot of updates in my personal development environment:

## Additions

1. Command lines and runtimes:
   1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier
   1. [`eksctl`][3]: `cli` to make `eks` cluster management easier
   1. [`r`][4]: software environment for statistical computing and graphics
   1. [`usage`][5]: specification for `cli`s, used by `mise`
1. Aliases:
   1. `dc`: for `docker compose`
   2. `k`: for `kubectl`
1. Moar `lsp`s:
   1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support
   1. [`jsonls`][11]: for `json` schemas
   1. [`r-languageserver`][12]: for the [`r`][4] environment
   1. [`yamlls`][13]: for `yaml` schemas
1. Auto-completion for:
   1. [`ctlptl`][2]
   1. [`eksctl`][3]
   1. `helm`
   1. `k3d`
   1. `k9s`
   1. `kubectl`
   1. `lefthook`
   1. `mise`

## Upgrades

1. Runtimes:
   1. [`elixir` from 1.16.2 to 1.17.0][0]
   1. [`erlang` from 26.2.5 to 27.0][1]
1. [`kickstart.nvim` to latest commit][6]
1. [Installation of `atuin`][7]

Reviewed-on: #52

[0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/
[1]: https://www.erlang.org/news/170
[2]: https://github.com/tilt-dev/ctlptl
[3]: https://eksctl.io/
[4]: https://www.r-project.org/
[5]: https://usage.jdx.dev/
[6]: 5aeddfdd5d
[7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install
[8]: https://github.com/dagger/cuelsp
[9]: https://cuelang.org/
[10]: https://dagger.io/
[11]: https://github.com/microsoft/vscode-json-languageservice
[12]: https://github.com/REditorSupport/languageserver
[13]: https://github.com/redhat-developer/yaml-language-server
Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
This commit is contained in:
2024-06-16 18:25:22 +00:00
committed by João Paulo Dubas
parent 5e38d5886a
commit 9605631b51
4 changed files with 77 additions and 12 deletions

View File

@@ -112,7 +112,6 @@ ENV DC_URL https://github.com/docker/compose/releases/download/${DC_VERSION}/doc
ENV BX_VERSION v0.13.1
ENV BX_URL https://github.com/docker/buildx/releases/download/${BX_VERSION}/buildx-${BX_VERSION}.linux-amd64
RUN curl -sS https://starship.rs/install.sh | sh -s -- --yes \
&& curl -sS https://setup.atuin.sh | bash \
&& mkdir /tmp/download \
&& curl -L ${DO_URL} | tar -zx -C /tmp/download \
&& chgrp --recursive docker /tmp/download \
@@ -162,6 +161,7 @@ RUN git clone https://github.com/elixir-lsp/elixir-ls.git ${LOCAL_SRC_HOME}/elix
ENV MISE_ENV_FILE .env
RUN curl https://mise.jdx.dev/install.sh | sh \
&& curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash \
&& curl -sS https://raw.githubusercontent.com/atuinsh/atuin/main/install.sh | bash \
&& git clone https://github.com/tmux-plugins/tpm.git ${XDG_CONFIG_HOME}/tmux/plugins/tpm
# configure fish and bash
@@ -173,14 +173,17 @@ RUN fish -c true \
&& echo 'alias cat="bat"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias l="eza --time-style=long-iso --color=auto --classify=always"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias ll="l -ahl"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias la="l -a"' >> ${XDG_CONFIG_HOME}/fish/config.fish
&& echo 'alias la="l -a"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias k="kubectl"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias dc="docker compose"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias nh="nvim --listen 0.0.0.0:6666 --headless &> /dev/null' >> ${XDG_CONFIG_HOME}/fish/config.fish
# git configuration
COPY ./patch/kickstart.nvim/updates.patch /tmp
COPY ./config/nvim/lua/custom/plugins/init.lua /tmp
RUN git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME}"/nvim \
&& cd ${XDG_CONFIG_HOME}/nvim \
&& git reset --hard b9bd02d55b77293291a38fac9abe46acad9ab91d \
&& git reset --hard 5aeddfdd5d0308506ec63b0e4f8de33e2a39355f \
&& git apply /tmp/updates.patch \
&& cp /tmp/init.lua ${XDG_CONFIG_HOME}/nvim/lua/custom/plugins \
&& nvim --headless "+Lazy! sync" +qa
@@ -191,7 +194,9 @@ RUN ${LOCAL_BIN_HOME}/mise plugins install --force --yes \
bat \
bitwarden \
circleci-cli \
ctlptl \
dagger \
eksctl \
elixir \
erlang \
eza \
@@ -207,6 +212,7 @@ RUN ${LOCAL_BIN_HOME}/mise plugins install --force --yes \
lua \
luajit \
poetry \
r \
ripgrep \
rust \
starship \
@@ -214,6 +220,7 @@ RUN ${LOCAL_BIN_HOME}/mise plugins install --force --yes \
terraform \
tilt \
tmux \
usage \
usql \
yarn \
zoxide