mirror of
https://github.com/catppuccin/nvim
synced 2024-09-16 13:24:08 +02:00
feat(tests): add vanilla vim (#423)
This commit is contained in:
parent
f08590be32
commit
06ceffdef5
2 changed files with 67 additions and 0 deletions
54
.github/workflows/vim.yml
vendored
Normal file
54
.github/workflows/vim.yml
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
---
|
||||
name: Vim
|
||||
on:
|
||||
pull_request: ~
|
||||
push:
|
||||
paths-ignore:
|
||||
- "*.md"
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
ubuntu:
|
||||
name: Ubuntu
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Vim
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get install vim-gtk lua5.4
|
||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
- name: Run vim
|
||||
run: |
|
||||
vim --version
|
||||
vim -u tests/init.vim
|
||||
macos:
|
||||
name: Macos
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Vim
|
||||
run: |
|
||||
brew install vim
|
||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
- name: Run vim
|
||||
run: |
|
||||
vim --version
|
||||
vim -u tests/init.vim
|
||||
# windows:
|
||||
# name: Windows
|
||||
# runs-on: windows-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
# - name: Install Vim
|
||||
# run: |
|
||||
# choco install vim
|
||||
# iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
|
||||
# ni $HOME/vimfiles/autoload/plug.vim -Force
|
||||
# - name: Run vim
|
||||
# run: |
|
||||
# vim --version
|
||||
# vim -u tests/init.vim
|
13
tests/init.vim
Normal file
13
tests/init.vim
Normal file
|
@ -0,0 +1,13 @@
|
|||
try
|
||||
call plug#begin()
|
||||
Plug expand('<sfile>')[0:-16]
|
||||
call plug#end()
|
||||
|
||||
lua require("catppuccin").setup {}
|
||||
colorscheme catppuccin
|
||||
catch
|
||||
echo v:exception
|
||||
1cq
|
||||
finally
|
||||
0cq
|
||||
endtry
|
Loading…
Reference in a new issue