Skip to content

Commit

Permalink
all nvim lua conf with lazy.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcPartensky committed Aug 19, 2024
1 parent 5275f5a commit fb10582
Show file tree
Hide file tree
Showing 55 changed files with 1,833 additions and 797 deletions.
7 changes: 7 additions & 0 deletions nvim/.config/nvim/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
liberapay: marcpartensky
patreon: marcpartensky
github: marcpartensky
custom:
# - monero:43J2XmRtjDPRLD35UsYGH2AZamFBQz7dt4VdvZXVm3SuadTrvcoXUXBRUNHqukFte23Q5TWXqhbwaLJJgoVQzzbe2AJDANQ
- https://paypal.me/marcpartensky
- https://buymeacoffee.com/marcpartensky
70 changes: 70 additions & 0 deletions nvim/.config/nvim/.github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '45 22 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
51 changes: 51 additions & 0 deletions nvim/.config/nvim/.github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Docker

on:
push:
branches:
- master
# Publish `v1.2.3` tags as releases.
tags:
- v*

# Run tests for any PRs.
pull_request:

env:
IMAGE_NAME: nvim-lua

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build the tag
id: tag
run: echo "::set-output name=tag::$(git rev-parse --short HEAD).$(date +'%Y-%m-%d')"

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: marcpartensky/nvim-lua:latest

- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: marcpartensky/nvim-lua:v${{ github.run_number }}.${{ steps.tag.outputs.tag }}
16 changes: 9 additions & 7 deletions nvim/.config/nvim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
FROM archlinux:latest
FROM alpine:latest

LABEL maintainer="Marc Partensky <marc.partensky@gmail.com"
LABEL maintainer="Marc Partensky <marc.partensky@proton.me"

RUN touch .vimrc
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
# RUN localedef -i en_US -f UTF-8 en_US.UTF-8

RUN pacman -Syu --noconfirm \
RUN apk update
RUN apk add \
git \
npm \
yarn \
python3 \
# go \
# make \
python-pip \
# python-pip \
neovim

RUN npm i -g neovim
RUn pip install neovim
# RUN npm i -g neovim
# RUN pip install neovim

RUN git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
Expand Down
35 changes: 35 additions & 0 deletions nvim/.config/nvim/Dockerfile.archlinux
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM archlinux:latest

LABEL maintainer="Marc Partensky <[email protected]"

RUN touch .vimrc
RUN localedef -i en_US -f UTF-8 en_US.UTF-8

RUN pacman -Syu --noconfirm \
git \
npm \
yarn \
# go \
# make \
python-pip \
neovim

RUN npm i -g neovim
RUN pip install neovim

RUN git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim

COPY . /root/.config/nvim
RUN nvim --headless -c "TSInstallSync maintained" -c q
RUN nvim --headless -c PackerSync -c q

RUN nvim --headless \
+"source /root/.config/nvim/init.lua" \
+PackerSync \
+PackerUpdate \
+qall

# RUN nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'

ENTRYPOINT ["nvim", "+checkhealth"]
4 changes: 4 additions & 0 deletions nvim/.config/nvim/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
push: build
docker compose push
build:
docker compose build
27 changes: 0 additions & 27 deletions nvim/.config/nvim/after/plugin/autopairs.lua

This file was deleted.

2 changes: 0 additions & 2 deletions nvim/.config/nvim/after/plugin/bufferline.lua

This file was deleted.

45 changes: 0 additions & 45 deletions nvim/.config/nvim/after/plugin/comment.lua

This file was deleted.

Loading

0 comments on commit fb10582

Please sign in to comment.