Skip to content
Draft
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .editorconfig

This file was deleted.

2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lua/**/*.lua linguist-generated
lua/example/nfnl/**/*.lua linguist-vendored
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
deps/
.eca/
1 change: 1 addition & 0 deletions .ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lua/**/*.lua
Comment thread
joaopluigi marked this conversation as resolved.
3 changes: 0 additions & 3 deletions .luacheckrc

This file was deleted.

9 changes: 9 additions & 0 deletions .nfnl.fnl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(local core (require :eca.nfnl.core))
(local config (require :eca.nfnl.config))
(local defaults (config.default))

{:compiler-options (core.merge
defaults.compiler-options
{:compilerEnv _G})
:source-file-patterns [".nvim.fnl" "plugin/*.fnl" "fnl/**/*.fnl"]
:orphan-detection {:ignore-patterns ["lua/eca/nfnl/"]}}
21 changes: 6 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
# Makefile for ECA Neovim plugin testing

.PHONY: test test-file deps clean
.PHONY: test deps clean

# Download dependencies for testing
deps: deps/mini.nvim deps/nui.nvim
deps: deps/plenary

deps/mini.nvim:
deps/plenary:
mkdir -p deps
git clone --filter=blob:none https://github.com/echasnovski/mini.nvim deps/mini.nvim

deps/nui.nvim:
mkdir -p deps
git clone --filter=blob:none https://github.com/MunifTanjim/nui.nvim deps/nui.nvim
git clone --filter=blob:none https://github.com/nvim-lua/plenary.nvim.git
Comment thread
joaopluigi marked this conversation as resolved.
Outdated

# Run all tests
test: deps
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua MiniTest.run()"

# Run a specific test file
# Usage: make test-file FILE=tests/test_example.lua
test-file: deps
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua MiniTest.run_file('$(FILE)')"
./script/test

# Clean up dependencies
clean:
rm -rf deps/
rm -rf deps/
29 changes: 0 additions & 29 deletions after/plugin/eca-nvim.lua

This file was deleted.

Binary file removed demo.png
Binary file not shown.
Loading
Loading