From 7c03ae048bc9c32fa97c0e72f76006f81410eab2 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Sat, 4 May 2024 21:09:29 +0200 Subject: [PATCH] cleanup --- .forgejoDISABLED/workflows/linter.yml | 24 ----------------- .forgejoDISABLED/workflows/tests.yml | 39 --------------------------- README.md | 29 +------------------- tests/example_spec.lua | 5 ---- tests/minimal.vim | 3 --- 5 files changed, 1 insertion(+), 99 deletions(-) delete mode 100644 .forgejoDISABLED/workflows/linter.yml delete mode 100644 .forgejoDISABLED/workflows/tests.yml delete mode 100644 tests/example_spec.lua delete mode 100644 tests/minimal.vim diff --git a/.forgejoDISABLED/workflows/linter.yml b/.forgejoDISABLED/workflows/linter.yml deleted file mode 100644 index 989bc78..0000000 --- a/.forgejoDISABLED/workflows/linter.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -name: Lint Code Base -on: - pull_request: ~ - push: - branches: - - master - -jobs: - build: - name: Lint Code Base - runs-on: ubuntu-latest - - steps: - - name: Checkout Code - uses: actions/checkout@v3 - - - name: Lint Code Base - uses: github/super-linter/slim@v4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - LINTER_RULES_PATH: / - VALIDATE_JSCPD: false - VALIDATE_PYTHON_BLACK: false diff --git a/.forgejoDISABLED/workflows/tests.yml b/.forgejoDISABLED/workflows/tests.yml deleted file mode 100644 index 0217cfa..0000000 --- a/.forgejoDISABLED/workflows/tests.yml +++ /dev/null @@ -1,39 +0,0 @@ ---- -name: Run tests -on: - pull_request: ~ - push: - branches: - - master - -jobs: - build: - name: Run tests - runs-on: ubuntu-latest - strategy: - matrix: - neovim_version: ['nightly'] - - steps: - - uses: actions/checkout@v3 - - run: date +%F > todays-date - - name: Restore cache for today's nightly. - uses: actions/cache@v2 - with: - path: _neovim - key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }} - - - name: Prepare plenary - run: | - git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim - ln -s "$(pwd)" ~/.local/share/nvim/site/pack/vendor/start - - - name: Setup neovim - uses: rhysd/action-setup-vim@v1 - with: - neovim: true - version: ${{ matrix.neovim_version }} - - - name: Run tests - run: | - nvim --headless --noplugin -u tests/minimal.vim -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal.vim'}" diff --git a/README.md b/README.md index 02c9574..c787cc9 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,8 @@ -# transformer.nvim +# anthropic.nvim ## TODO - [X] Get basic api calls working -- [ ] Add tests for api functions - [ ] Set up GUI - [ ] Set up in-place replacement functionality - [ ] Set up prompt preconfiguration -- [ ] Set up chat saving - -### Misc - -- [ ] Rework the spinner functions - -## Development - -### Run tests - -Running tests requires [plenary.nvim][plenary] to be checked out in the parent -directory of *this* repository. You can then run: - -```bash -nvim --headless --noplugin -u tests/minimal.vim \ - -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal.vim'}" -``` - -Or if you want to run a single test file: - -```bash -nvim --headless --noplugin -u tests/minimal.vim \ - -c "PlenaryBustedDirectory tests/path_to_file.lua {minimal_init = 'tests/minimal.vim'}" -``` - -[plenary]: https://github.com/nvim-lua/plenary.nvim diff --git a/tests/example_spec.lua b/tests/example_spec.lua deleted file mode 100644 index 9f8c94e..0000000 --- a/tests/example_spec.lua +++ /dev/null @@ -1,5 +0,0 @@ -describe('Test example', function() - it('Test can access vim namespace', function() - assert.are.same(vim.trim(' a '), 'a') - end) -end) diff --git a/tests/minimal.vim b/tests/minimal.vim deleted file mode 100644 index 7547e39..0000000 --- a/tests/minimal.vim +++ /dev/null @@ -1,3 +0,0 @@ -set rtp+=. -set rtp+=../plenary.nvim -runtime! plugin/plenary.vim