Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
e8165e1
refactor!: make this an standalone plugin
kiyoon Jun 1, 2024
7573bbb
fix: regressions after refactor (#607)
TheLeoP May 9, 2024
01a684a
fix: handle nil start_nodes for `query_predicates`. (#655)
milanglacier Aug 2, 2024
32469ad
fix: modify range instance instead of creating a new table
ofseed Jun 18, 2024
a71d5aa
fix: correct order and key relationship
ofseed Jun 18, 2024
54d40d0
docs: fix the position of the `include_surrounding_whitespace`
ofseed Jun 18, 2024
62b04de
fix: avoid pass nonexistent field
ofseed Aug 3, 2024
5d1e2ad
docs: parameter should be optional
ofseed Aug 3, 2024
033e4f0
docs: `RepeatableMove.func` could be a string
ofseed Aug 3, 2024
4c077b8
refactor: make `to_vim_range` return a `Range` instead of four numbers
ofseed Aug 3, 2024
603b5ce
fix: avoid unnecessary closures
ofseed Aug 4, 2024
c1ab434
feat!: remove lsp interop
clason Aug 4, 2024
00e0728
fix(repeatable_move): remove deprecated functions
clason Aug 6, 2024
a6f9871
refactor(repeatable_move)!: only expose necessary API
clason Aug 6, 2024
fcfe7b3
refactor(repeatable_move): inline `set_last_move`
clason Aug 6, 2024
45743d5
ci(tests): fix parser installation
clason Aug 4, 2024
0093b49
fix(repeatable_move): correct vim.cmd for f/F/t/T
clason Aug 10, 2024
876328b
fix(shared): correct language detection
clason Aug 10, 2024
887071f
fix(minimal_init): correct signature, use locals
clason Aug 10, 2024
4b2592b
refactor: move main module to init.lua
clason Aug 6, 2024
23e3586
refactor(shared): move out Range class
clason Aug 6, 2024
4f411b2
refactor(shared): inline and memoize match preparation
clason Aug 6, 2024
d09f185
refactor(shared): more memoize, type fixes
clason Aug 6, 2024
ba11866
refactor: consistent local api
clason Aug 6, 2024
b8c0ef0
refactor(shared)!: drop support for specifying textobjects via regex
clason Aug 6, 2024
79d0553
refactor(shared): move {next,previous}_textobject to swap
clason Aug 7, 2024
35ecd0c
refactor!: fail silently if textobjects not available
clason Aug 7, 2024
4c7214a
refactor(range): remove `range.lua`
ofseed Aug 19, 2024
8af5a39
refactor(shared)!: remove `to_vim_range`
ofseed Aug 20, 2024
2098ffd
refactor(swap): remove custom `get_text`
ofseed Aug 20, 2024
de42159
refactor(shared): better convertion function name
ofseed Aug 20, 2024
5b8ac26
refactor(repeatable_move): extract the `MoveFunction` interface (#671)
ofseed Aug 21, 2024
8e7ef60
fix(shared): resolve metadata from directives
ofseed Aug 30, 2024
a34d063
docs(readme): fix swap example
ofseed Sep 1, 2024
aad2c8e
feat: support quantified captures (#612)
ribru17 Sep 26, 2024
8e704c1
fix(julia): query syntax error
phanen Oct 18, 2024
e0a7b5a
fix(repeatable_move)!: make `d;` work like the builtin behavior (#707)
phanen Oct 21, 2024
4c17295
docs: correct typo (#727)
Jan 28, 2025
fa32a45
fix: Adjust selected range if `set selection?` is `exclusive` (#687)
afgomez Feb 28, 2025
efc4f06
fix(julia): adapt queries to parser changes
fredrikekre Nov 21, 2024
6da9c11
fix(shared): ensure tree is parsed
clason May 28, 2025
a6500b6
feat(tests): port test infrastructure
clason May 27, 2025
0e9bebf
chore: reformat with new stylua settings
clason May 27, 2025
6d66132
chore: remove obsolete scripts
clason May 28, 2025
7fcfe8d
docs(readme): regenerate
clason May 28, 2025
f088463
fix(lua): fix luals warnings
clason May 28, 2025
3f62d56
fix(queries): fix lint
clason May 27, 2025
b54cec3
ci: migrate to nvim-treesitter
clason May 27, 2025
1b2d85d
fix(repeatable_move): bug when nil was returned or normal command use…
mezdelex Aug 28, 2025
b8a1f05
feat(prisma): add prisma queries
purarue Sep 18, 2025
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
38 changes: 0 additions & 38 deletions .github/workflows/check_query_files.yml

This file was deleted.

63 changes: 25 additions & 38 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,40 @@
name: Linting and style checking
name: Lint

on: [push, pull_request]
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
workflow_dispatch:

jobs:
luacheck:
name: Luacheck
lua:
name: Lint Lua files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Prepare
- name: Format
run: |
sudo apt-get update
sudo add-apt-repository universe
sudo apt install luarocks -y
sudo luarocks install luacheck
make formatlua
git diff --exit-code

- name: Run Luacheck
run: sudo ./scripts/style-check.sh
- name: Lint
run: make checklua

stylua:
name: StyLua
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint with stylua
uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .

format-queries:
name: Lint queries
queries:
name: Lint query files
runs-on: ubuntu-latest
env:
NVIM_TAG: stable
steps:
- uses: actions/checkout@v4
- name: Prepare
run: |
bash ./scripts/ci-install-ubuntu-latest.sh
wget -P scripts/ https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/main/scripts/format-queries.lua
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
cd ~/.local/share/nvim/site/pack/nvim-treesitter/start
git clone https://github.com/nvim-treesitter/nvim-treesitter.git

- name: Lint
- name: Format
run: |
nvim --headless -c "TSInstallSync query" -c "q"
nvim -l scripts/format-queries.lua queries
make formatquery
git diff --exit-code

- name: Lint
run: make lintquery

71 changes: 71 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Tests

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-build-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

defaults:
run:
shell: bash

jobs:
check_compilation:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
nvim_tag: [nightly]
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
NVIM_TS_DIR: .test-deps/nvim-treesitter

steps:
- uses: actions/checkout@v4
- uses: tree-sitter/setup-action/cli@v1
- uses: ilammy/msvc-dev-cmd@v1

- name: Install and prepare Neovim
env:
NVIM_TAG: ${{ matrix.nvim_tag }}
run: |
bash ./scripts/ci-install.sh

- name: Install nvim-treesitter
uses: actions/checkout@v4
with:
repository: nvim-treesitter/nvim-treesitter
ref: main
path: ${{ env.NVIM_TS_DIR }}

- name: Setup Parsers Cache
id: parsers-cache
uses: actions/cache@v4
with:
path: ~/.local/share/nvim/site/parser/
key: parsers-${{ hashFiles('parsers.lua') }}

- name: Compile parsers
if: steps.parsers-cache.outputs.cache-hit != 'true'
working-directory: ${{ env.NVIM_TS_DIR }}
run: nvim -l ./scripts/install-parsers.lua --max-jobs=10

- name: Lint docs
run: |
make docs
git diff --exit-code

- name: Check queries
run: make checkquery

- name: Run tests
run: make tests
60 changes: 0 additions & 60 deletions .github/workflows/tests.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/update-readme.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.test-deps
doc/tags
.luacheckcache
/tags
nvim.appimage
nvim-linux-x86_64*
nvim-macos*
nvim-win64*
17 changes: 0 additions & 17 deletions .luacheckrc

This file was deleted.

29 changes: 29 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"runtime": {
"version": "LuaJIT"
},
"workspace": {
"library": [
"$VIMRUNTIME",
"${3rd}/busted/library"
],
"ignoreDir": [
".test-deps",
"scripts",
"tests"
],
"checkThirdParty": "Disable"
},
"diagnostics": {
"groupFileStatus": {
"strict": "Opened",
"strong": "Opened"
},
"groupSeverity": {
"strong": "Warning",
"strict": "Warning"
},
"unusedLocalExclude": [ "_*" ]
}
}
5 changes: 4 additions & 1 deletion .stylua.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
column_width = 100
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
no_call_parentheses = true
quote_style = "AutoPreferSingle"
call_parentheses = "Always"
Loading