diff --git a/doc/fugitive-ts.nvim.txt b/doc/fugitive-ts.nvim.txt index b7fe124..9d5e5de 100644 --- a/doc/fugitive-ts.nvim.txt +++ b/doc/fugitive-ts.nvim.txt @@ -70,23 +70,11 @@ CONFIGURATION *fugitive-ts-config* Skip treesitter highlighting for hunks larger than this many lines. Prevents lag on massive diffs. -Example Configuration ~ ->lua - require('fugitive-ts').setup({ - enabled = true, - debug = false, - languages = {}, - disabled_languages = {}, - highlight_headers = true, - debounce_ms = 50, - max_lines_per_hunk = 500, - }) -< ============================================================================== API *fugitive-ts-api* setup({opts}) *fugitive-ts.setup()* - Configure the plugin. Called automatically by lazy.nvim when using `opts`. + Configure the plugin with `opts`. Parameters: ~ {opts} (|fugitive-ts.Config|, optional) Configuration table. diff --git a/scripts/test-env.sh b/scripts/test-env.sh deleted file mode 100755 index f0d967a..0000000 --- a/scripts/test-env.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/usr/bin/env bash -set -e - -PLUGIN_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -TEMP_DIR=$(mktemp -d) - -echo "Creating test environment in $TEMP_DIR" - -cd "$TEMP_DIR" -git init -q - -cat > test.lua << 'EOF' -local M = {} - -function M.hello() - local msg = "hello world" - print(msg) - return true -end - -return M -EOF - -cat > test.py << 'EOF' -def hello(): - msg = "hello world" - print(msg) - return True - -if __name__ == "__main__": - hello() -EOF - -cat > test.js << 'EOF' -function hello() { - const msg = "hello world"; - console.log(msg); - return true; -} - -module.exports = { hello }; -EOF - -git add -A -git commit -q -m "initial commit" - -cat >> test.lua << 'EOF' - -function M.goodbye() - local msg = "goodbye world" - print(msg) - return false -end -EOF - -cat >> test.py << 'EOF' - -def goodbye(): - msg = "goodbye world" - print(msg) - return False -EOF - -cat >> test.js << 'EOF' - -function goodbye() { - const msg = "goodbye world"; - console.log(msg); - return false; -} -EOF - -git add test.lua - -cat > init.lua << EOF -vim.opt.rtp:prepend('$PLUGIN_DIR') -vim.opt.rtp:prepend(vim.fn.stdpath('data') .. '/lazy/vim-fugitive') - -require('fugitive-ts').setup({ - debug = true, -}) - -vim.cmd('Git') -EOF - -echo "Test repo created with:" -echo " - test.lua (staged changes)" -echo " - test.py (unstaged changes)" -echo " - test.js (unstaged changes)" -echo "" -echo "Opening neovim with fugitive..." - -nvim -u init.lua diff --git a/scripts/test.sh b/scripts/test.sh deleted file mode 100755 index c20d0bf..0000000 --- a/scripts/test.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -ROOT_DIR="$(dirname "$SCRIPT_DIR")" - -cd "$ROOT_DIR" - -if command -v luarocks &> /dev/null; then - luarocks test --local -else - echo "luarocks not found, running nvim directly..." - nvim --headless --noplugin \ - -u spec/minimal_init.lua \ - -c "lua require('busted.runner')({ standalone = false })" \ - -c "qa!" -fi