mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-19 10:56:05 -07:00
Compare commits
2 Commits
51e2c2f153
...
f0bdc07a13
Author | SHA1 | Date | |
---|---|---|---|
f0bdc07a13 | |||
9e033f4df1 |
@ -10,11 +10,6 @@
|
|||||||
url = "https://github.com/alacritty/alacritty-theme"
|
url = "https://github.com/alacritty/alacritty-theme"
|
||||||
refreshPeriod = "168h"
|
refreshPeriod = "168h"
|
||||||
|
|
||||||
[".local/share/nvim/site/pack/packer/start/packer.nvim"]
|
|
||||||
type = "git-repo"
|
|
||||||
url = "https://github.com/wbthomason/packer.nvim.git"
|
|
||||||
refreshPeriod = "168h"
|
|
||||||
|
|
||||||
[".tmux/plugins/tpm"]
|
[".tmux/plugins/tpm"]
|
||||||
type = "git-repo"
|
type = "git-repo"
|
||||||
url = "https://github.com/tmux-plugins/tpm"
|
url = "https://github.com/tmux-plugins/tpm"
|
||||||
|
@ -1 +1 @@
|
|||||||
require("tstarr.packer")
|
require("tstarr.plugins")
|
||||||
|
@ -1,63 +0,0 @@
|
|||||||
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
|
|
||||||
|
|
||||||
local ensure_packer = function()
|
|
||||||
local fn = vim.fn
|
|
||||||
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
|
||||||
if fn.empty(fn.glob(install_path)) > 0 then
|
|
||||||
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
|
||||||
vim.cmd [[packadd packer.nvim]]
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
local packer_bootstrap = ensure_packer()
|
|
||||||
|
|
||||||
return require('packer').startup(function(use)
|
|
||||||
-- Packer can manage itself
|
|
||||||
use 'wbthomason/packer.nvim'
|
|
||||||
|
|
||||||
-- Apperance
|
|
||||||
use("ellisonleao/gruvbox.nvim")
|
|
||||||
use('norcalli/nvim-colorizer.lua')
|
|
||||||
require("colorizer").setup()
|
|
||||||
|
|
||||||
-- Syntax Hilight
|
|
||||||
use ('alker0/chezmoi.vim')
|
|
||||||
use ('nathangrigg/vim-beancount')
|
|
||||||
|
|
||||||
-- IDE
|
|
||||||
use('nvim-lua/plenary.nvim')
|
|
||||||
|
|
||||||
-- Editing
|
|
||||||
use("mickael-menu/zk-nvim")
|
|
||||||
|
|
||||||
-- External
|
|
||||||
require("zk").setup()
|
|
||||||
|
|
||||||
-- LSP
|
|
||||||
use("nvim-treesitter/nvim-treesitter-context");
|
|
||||||
use {
|
|
||||||
'VonHeikemen/lsp-zero.nvim',
|
|
||||||
branch = 'v1.x',
|
|
||||||
requires = {
|
|
||||||
-- LSP Support
|
|
||||||
{'neovim/nvim-lspconfig'},
|
|
||||||
{'williamboman/mason.nvim'},
|
|
||||||
{'williamboman/mason-lspconfig.nvim'},
|
|
||||||
|
|
||||||
-- Autocompletion
|
|
||||||
{'hrsh7th/nvim-cmp'},
|
|
||||||
{'hrsh7th/cmp-buffer'},
|
|
||||||
{'hrsh7th/cmp-path'},
|
|
||||||
{'saadparwaiz1/cmp_luasnip'},
|
|
||||||
{'hrsh7th/cmp-nvim-lsp'},
|
|
||||||
{'hrsh7th/cmp-nvim-lua'},
|
|
||||||
|
|
||||||
-- Snippets
|
|
||||||
{'L3MON4D3/LuaSnip'},
|
|
||||||
{'rafamadriz/friendly-snippets'},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
end)
|
|
50
home/dot_config/nvim/lua/tstarr/plugins.lua
Normal file
50
home/dot_config/nvim/lua/tstarr/plugins.lua
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
-- bootstrap lazy.nvim
|
||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
|
vim.fn.system({
|
||||||
|
"git",
|
||||||
|
"clone",
|
||||||
|
"--filter=blob:none",
|
||||||
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
|
"--branch=stable", -- latest stable release
|
||||||
|
lazypath,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
local plugins = {
|
||||||
|
"ellisonleao/gruvbox.nvim",
|
||||||
|
'norcalli/nvim-colorizer.lua',
|
||||||
|
'alker0/chezmoi.vim',
|
||||||
|
'nathangrigg/vim-beancount',
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
"mickael-menu/zk-nvim",
|
||||||
|
"nvim-treesitter/nvim-treesitter-context",
|
||||||
|
{
|
||||||
|
'VonHeikemen/lsp-zero.nvim',
|
||||||
|
branch = 'v1.x',
|
||||||
|
dependencies = {
|
||||||
|
-- LSP Support
|
||||||
|
{'neovim/nvim-lspconfig'},
|
||||||
|
{'williamboman/mason.nvim'},
|
||||||
|
{'williamboman/mason-lspconfig.nvim'},
|
||||||
|
-- Autocompletion
|
||||||
|
{'hrsh7th/nvim-cmp'},
|
||||||
|
{'hrsh7th/cmp-buffer'},
|
||||||
|
{'hrsh7th/cmp-path'},
|
||||||
|
{'saadparwaiz1/cmp_luasnip'},
|
||||||
|
{'hrsh7th/cmp-nvim-lsp'},
|
||||||
|
{'hrsh7th/cmp-nvim-lua'},
|
||||||
|
-- Snippets
|
||||||
|
{'L3MON4D3/LuaSnip'},
|
||||||
|
{'rafamadriz/friendly-snippets'},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
local opts = {}
|
||||||
|
require("lazy").setup(plugins, opts)
|
||||||
|
|
||||||
|
-- External
|
||||||
|
require("zk").setup()
|
||||||
|
require("colorizer").setup()
|
@ -1,58 +1,49 @@
|
|||||||
FROM fedora:latest
|
# https://github.com/starr-dusT/dotfiles
|
||||||
|
# Usage: docker build -t <image name> .
|
||||||
|
# docker run -d --name <image name> -p 8080:8080 -v .:/root/src -it <container name>
|
||||||
|
|
||||||
ENV TERM xterm-256color
|
ARG VARIANT="3.18.3"
|
||||||
|
|
||||||
###############################################################################
|
# Pull alpine container from IronBank (See readme to setup pulling from IronBank with Docker)
|
||||||
# install
|
FROM "alpine:latest"
|
||||||
###############################################################################
|
#FROM "registry1.dso.mil/ironbank/opensource/alpinelinux/alpine:${VARIANT}"
|
||||||
|
|
||||||
# base
|
##### BASE CONFIG #####
|
||||||
RUN dnf install -y \
|
|
||||||
git \
|
# Install edge repo
|
||||||
git-lfs \
|
RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
|
||||||
python \
|
RUN apk --no-check-certificate update
|
||||||
python3 \
|
|
||||||
python3-pip \
|
|
||||||
python3-tornado \
|
|
||||||
cargo \
|
|
||||||
npm \
|
|
||||||
gcc \
|
|
||||||
gcc-c++ \
|
|
||||||
make \
|
|
||||||
openssl-devel \
|
|
||||||
libffi-devel \
|
|
||||||
redhat-rpm-config \
|
|
||||||
vim \
|
|
||||||
tmux \
|
|
||||||
hostname \
|
|
||||||
&& dnf clean all
|
|
||||||
|
|
||||||
# user
|
# Install Alpine packages for python
|
||||||
RUN dnf install -y \
|
RUN apk add --no-check-certificate --virtual .base-python \
|
||||||
neovim
|
python3 py3-pip ipython py3-matplotlib py3-psutil jupyter-notebook py3-tornado
|
||||||
|
|
||||||
###############################################################################
|
# Install Alpine build dependices for pip installs
|
||||||
# general
|
RUN apk add --no-check-certificate --virtual .build-deps \
|
||||||
###############################################################################
|
alpine-sdk cmake gfortran openblas-dev hdf5-dev \
|
||||||
|
python3-dev py3-numpy-dev jpeg-dev py3-qt5
|
||||||
|
|
||||||
# add user
|
# Install pip packages for python
|
||||||
RUN useradd -u 1000 -g 100 -ms /bin/bash dev \
|
RUN pip install \
|
||||||
&& echo 'dev:pass' | chpasswd
|
--break-system-packages --trusted-host pypi.org --trusted-host files.pythonhosted.org \
|
||||||
RUN usermod -aG wheel dev
|
ipykernel ipympl pandas numpy
|
||||||
|
|
||||||
###############################################################################
|
# Install other useful packages
|
||||||
# user config
|
RUN apk add --no-check-certificate --virtual .useful-packs \
|
||||||
###############################################################################
|
bash tmux git stow openssh vim nano
|
||||||
|
|
||||||
USER dev
|
##### PERSONAL CONFIG #####
|
||||||
WORKDIR /home/dev
|
|
||||||
|
|
||||||
RUN git clone --depth 1 https://github.com/wbthomason/packer.nvim \
|
|
||||||
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
|
||||||
|
|
||||||
# clone dotfiles
|
# clone dotfiles
|
||||||
RUN sh -c "$(curl -fsLS get.chezmoi.io)"
|
RUN sh -c "$(curl -fsLS get.chezmoi.io)"
|
||||||
ENV PATH="/home/dev/bin:${PATH}"
|
ENV PATH="/home/dev/bin:${PATH}"
|
||||||
RUN chezmoi init --apply https://github.com/starr-dusT/dotfiles
|
RUN chezmoi init --apply https://github.com/starr-dusT/dotfiles
|
||||||
|
|
||||||
|
# Install other useful packages
|
||||||
|
RUN apk add --no-check-certificate --virtual .user-packs \
|
||||||
|
neovim cargo npm go
|
||||||
|
# Install plugins in image
|
||||||
|
RUN nvim --headless "+Lazy! sync" +qa
|
||||||
|
|
||||||
|
WORKDIR /root
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# https://github.com/starr-dusT/dotfiles
|
|
||||||
|
|
||||||
image_name="<image name>"
|
|
||||||
container_name="<container name>"
|
|
||||||
|
|
||||||
# if container image doesn't exist build it
|
|
||||||
if [ "$(docker images -q $image_name)" ]; then
|
|
||||||
echo "Image exists don't need to build..."
|
|
||||||
else
|
|
||||||
docker run -t "$image_name" .
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if container doesn't exist run it else start/attach
|
|
||||||
if [ "$(docker ps -a --filter "status=exited" --format "{{.Names}}" -f name=$container_name)" ]; then
|
|
||||||
echo "Attaching to existing container..."
|
|
||||||
docker start "$container_name"
|
|
||||||
docker attach "$container_name"
|
|
||||||
else
|
|
||||||
echo "Running new container..."
|
|
||||||
docker run --name "$container_name" --network host -v ./:/home/dev/src -it "$image_name"
|
|
||||||
fi
|
|
Loading…
x
Reference in New Issue
Block a user