feat: switch to lazyvim
This commit is contained in:
parent
17e3a6840f
commit
5e3d7ca7fb
@ -1,7 +1,10 @@
|
|||||||
FROM docker.io/fedora:41
|
FROM docker.io/fedora:41
|
||||||
|
|
||||||
# === setup system ===
|
# === setup system ===
|
||||||
RUN dnf -y install neovim zoxide unzip git go procps bash-completion
|
ENV TZ="Europe/Amsterdam"
|
||||||
|
RUN dnf -y install neovim unzip \
|
||||||
|
bash-completion zoxide fd-find procps \
|
||||||
|
git go npm
|
||||||
|
|
||||||
# === setup container user ===
|
# === setup container user ===
|
||||||
RUN useradd -ms /bin/bash user && usermod -aG wheel user && sed -i '/NOPASSWD/s/^#//g' /etc/sudoers
|
RUN useradd -ms /bin/bash user && usermod -aG wheel user && sed -i '/NOPASSWD/s/^#//g' /etc/sudoers
|
||||||
@ -10,6 +13,6 @@ WORKDIR /home/user
|
|||||||
COPY config/user/bashrc /home/user/.bashrc
|
COPY config/user/bashrc /home/user/.bashrc
|
||||||
|
|
||||||
# === setup neovim ===
|
# === setup neovim ===
|
||||||
RUN git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim
|
RUN git clone --depth 1 https://github.com/LazyVim/starter ~/.config/nvim
|
||||||
COPY config/nvim/lua/community.lua /home/user/.config/nvim/lua/community.lua
|
COPY config/nvim/plugins /home/user/.config/nvim/lua/plugins
|
||||||
COPY config/nvim/lua/polish.lua /home/user/.config/nvim/lua/polish.lua
|
COPY config/nvim/config/options.lua /home/user/.config/nvim/config/lua/options.lua
|
||||||
|
1
config/nvim/config/options.lua
Normal file
1
config/nvim/config/options.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
vim.o.textwidth = 60
|
@ -1,5 +0,0 @@
|
|||||||
---@type LazySpec
|
|
||||||
return {
|
|
||||||
"AstroNvim/astrocommunity",
|
|
||||||
{ import = "astrocommunity.completion.copilot-lua-cmp" },
|
|
||||||
}
|
|
@ -1,2 +0,0 @@
|
|||||||
vim.opt.relativenumber = false
|
|
||||||
vim.opt.textwidth = 60
|
|
9
config/nvim/plugins/colorscheme.lua
Normal file
9
config/nvim/plugins/colorscheme.lua
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
return {
|
||||||
|
{ "rose-pine/neovim", name = "rose-pine" },
|
||||||
|
{
|
||||||
|
"LazyVim/LazyVim",
|
||||||
|
opts = {
|
||||||
|
colorscheme = "rose-pine-dawn",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
6
config/nvim/plugins/dashboard.lua
Normal file
6
config/nvim/plugins/dashboard.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvimdev/dashboard-nvim",
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
}
|
@ -4,13 +4,8 @@
|
|||||||
export EDITOR=nvim \
|
export EDITOR=nvim \
|
||||||
WAYLAND_DISPLAY=wayland-0 \
|
WAYLAND_DISPLAY=wayland-0 \
|
||||||
XDG_RUNTIME_DIR=/run/user/1000 \
|
XDG_RUNTIME_DIR=/run/user/1000 \
|
||||||
SSH_AUTH_SOCK=/run/user/1000/ssh-auth-sock
|
SSH_AUTH_SOCK=/run/user/1000/ssh-auth-sock \
|
||||||
|
|
||||||
if [ -n "$MYVIMRC" ]; then
|
|
||||||
PS1='\[\e[90;42m\] container | \w \[\e[40;32m\]\[\e[m\] '
|
|
||||||
else
|
|
||||||
PS1='\[\e[97;42m\] container | \w \[\e[49;32m\]\[\e[m\] '
|
PS1='\[\e[97;42m\] container | \w \[\e[49;32m\]\[\e[m\] '
|
||||||
fi
|
|
||||||
|
|
||||||
# === aliases and functions ===
|
# === aliases and functions ===
|
||||||
alias vi=nvim
|
alias vi=nvim
|
||||||
|
19
container.sh
19
container.sh
@ -1,11 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
podman run -it \
|
podman run -it \
|
||||||
--name "${dev:-dev}" \
|
--name "${1:-dev}" \
|
||||||
-v /run/user/1000/wayland-0:/run/user/1000/wayland-0 \
|
-v /run/user/1000/wayland-0:/run/user/1000/wayland-0 \
|
||||||
-v "$SSH_AUTH_SOCK":/run/user/1000/ssh-auth-sock \
|
-v "$SSH_AUTH_SOCK":/run/user/1000/ssh-auth-sock \
|
||||||
-v ~/Documents:/home/user/Documents \
|
-v ~/Documents:/home/user/Documents \
|
||||||
-v ~/.ssh:/home/user/.ssh \
|
-v ~/.ssh:/home/user/.ssh \
|
||||||
-v ~/.config/git:/home/user/.config/git \
|
-v ~/.config/git:/home/user/.config/git \
|
||||||
--security-opt label=disable \
|
--security-opt label=disable \
|
||||||
--userns=keep-id \
|
--userns=keep-id \
|
||||||
dev
|
dev
|
||||||
|
Loading…
Reference in New Issue
Block a user