diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b2734f5..e0a24de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,11 @@ jobs: manager: sudo apt-get packages: -y make lua-check - os: ubuntu-20.04 - url: https://github.com/neovim/neovim/releases/download/v0.8.3/nvim-linux64.tar.gz + url: https://github.com/neovim/neovim/releases/download/v0.9.5/nvim-linux64.tar.gz manager: sudo apt-get packages: -y make lua-check - os: ubuntu-20.04 - url: https://github.com/neovim/neovim/releases/download/v0.8.0/nvim-linux64.tar.gz + url: https://github.com/neovim/neovim/releases/download/v0.9.4/nvim-linux64.tar.gz manager: sudo apt-get packages: -y make lua-check steps: diff --git a/README.md b/README.md index 0cec909..d9aec62 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Its an extention to telescope that runs pre-defined (or custom) tree-sitter quer ## Requirements -[Neovim 0.8+](https://github.com/neovim/neovim) +[Neovim 0.9+](https://github.com/neovim/neovim) [Telescope](https://github.com/nvim-telescope/telescope.nvim) diff --git a/SUPPORTED.md b/SUPPORTED.md index 6aa36ea..5349d95 100644 --- a/SUPPORTED.md +++ b/SUPPORTED.md @@ -9,7 +9,6 @@ | glsl | x | x | x | | go | x | x | x | | lua | x | x | x -| perl | x | x | x | php | x | x* | x | python | x | x | x | ruby | x | x | x diff --git a/queries/perl/agrolens.callings.scm b/queries/perl/agrolens.callings.scm deleted file mode 100644 index 8f0672b..0000000 --- a/queries/perl/agrolens.callings.scm +++ /dev/null @@ -1 +0,0 @@ -(call_expression function_name:(identifier) @agrolens.name) @agrolens.scope diff --git a/queries/perl/agrolens.comments.scm b/queries/perl/agrolens.comments.scm deleted file mode 100644 index 5cae7fa..0000000 --- a/queries/perl/agrolens.comments.scm +++ /dev/null @@ -1,2 +0,0 @@ -(comments) @agrolens.scope -(pod_statement) @agrolens.scope diff --git a/queries/perl/agrolens.functions.scm b/queries/perl/agrolens.functions.scm deleted file mode 100644 index e4e4517..0000000 --- a/queries/perl/agrolens.functions.scm +++ /dev/null @@ -1 +0,0 @@ -(function_definition name:(identifier) @agrolens.name) @agrolens.scope diff --git a/queries/python/agrolens.comments.scm b/queries/python/agrolens.comments.scm index 6265e48..a72ff6f 100644 --- a/queries/python/agrolens.comments.scm +++ b/queries/python/agrolens.comments.scm @@ -1,2 +1,2 @@ (comment) @agrolens.scope -(expression_statement (string string_content:(string_content))) @arolens.scope +(expression_statement (string (string_start) (string_content))) @arolens.scope diff --git a/scripts/minimal_init.lua b/scripts/minimal_init.lua index e10dc8f..55863fa 100644 --- a/scripts/minimal_init.lua +++ b/scripts/minimal_init.lua @@ -8,7 +8,7 @@ vim.cmd [[au BufRead,BufNewFile *.gleam set filetype=gleam]] vim.o.swapfile = false vim.bo.swapfile = false -require("nvim-treesitter.configs").setup { - indent = { enable = true }, - highlight = { enable = true }, -} +-- require("nvim-treesitter.configs").setup { +-- indent = { enable = true }, +-- highlight = { enable = true }, +-- } diff --git a/tests/perl/perl.pl b/tests/perl/perl.pl deleted file mode 100644 index c4f8f58..0000000 --- a/tests/perl/perl.pl +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/perl - -sub Hello { - print "Hello, World!\n"; -} - -=for comment -stuff -=cut -sub HelloParam { - my @param = @_; - print "Hello, @param!\n"; -} - -Hello(); -HelloParam("friend"); diff --git a/tests/perl_spec.lua b/tests/perl_spec.lua deleted file mode 100644 index c6fe23e..0000000 --- a/tests/perl_spec.lua +++ /dev/null @@ -1,52 +0,0 @@ -describe("perl", function() - local lens = nil - local buffers = nil - - it("load", function() - vim.cmd.edit("tests/perl/perl.pl") - buffers = vim.api.nvim_list_bufs() - assert.equal(#buffers, 1) - - lens = require("telescope._extensions.agrolenslib") - lens._get_captures({queries = {"functions"}, bufids = buffers}) - end) - - it("functions", function() - local entries = lens._get_captures({ - queries = {"functions"}, - bufids = buffers - }) - - -- functions - assert.equals(#entries, 2) - assert.equals("tests/perl/perl.pl:3:0:sub Hello {", entries[1]) - assert.equals("tests/perl/perl.pl:10:0:sub HelloParam {", entries[2]) - end) - - it("callings", function() - local entries = lens._get_captures({ - queries = {"callings"}, - bufids = buffers - }) - - assert.equals(#entries, 4) - assert.equals('tests/perl/perl.pl:4:3: print "Hello, World!\\n";', - entries[1]) - assert.equals('tests/perl/perl.pl:12:3: print "Hello, @param!\\n";', - entries[2]) - assert.equals("tests/perl/perl.pl:15:0:Hello();", entries[3]) - assert.equals('tests/perl/perl.pl:16:0:HelloParam("friend");', - entries[4]) - end) - - it("comments", function() - local entries = lens._get_captures({ - queries = {"comments"}, - bufids = buffers - }) - - assert.equals(#entries, 2) - assert.equals("tests/perl/perl.pl:1:0:#!/usr/bin/perl", entries[1]) - assert.equals("tests/perl/perl.pl:7:0:=for comment", entries[2]) - end) -end)