mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2025-01-24 18:53:53 -06:00
Compare commits
39 Commits
1aff7cb8ed
...
e4f9252120
Author | SHA1 | Date | |
---|---|---|---|
e4f9252120 | |||
6d690fc131 | |||
209162fde6 | |||
262a48b242 | |||
f655badbb1 | |||
c43a896ebe | |||
43669cf7b9 | |||
ca9ba06e83 | |||
dcbae6df1e | |||
e8ae6e8df3 | |||
57e7c6c27b | |||
de4f720e00 | |||
a14fc79546 | |||
8e3a7aa96f | |||
ea02d622c3 | |||
6c8f07b102 | |||
a4d19476c8 | |||
ef6f6e0d48 | |||
7f91215f15 | |||
3925ec3f34 | |||
9d9d0a812e | |||
03cc1b52ff | |||
9191009088 | |||
1299cbc639 | |||
8c1895066c | |||
fe3dbcc277 | |||
c16ff16926 | |||
20491dc57e | |||
|
99af6de7cd | ||
a33dc74d47 | |||
ee56a21770 | |||
a6728af239 | |||
4466bdcfeb | |||
ae27db72e4 | |||
|
42c89e163b | ||
0121209f76 | |||
9b90325db1 | |||
8ff2824168 | |||
|
aeb7090098 |
39
.github/workflows/ci.yml
vendored
39
.github/workflows/ci.yml
vendored
@ -1,16 +1,39 @@
|
||||
name: Tests
|
||||
|
||||
on: [push, pull_request, workflow_call]
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
x64-ubuntu:
|
||||
name: nix-runner
|
||||
runs-on: self-hosted
|
||||
name: X64-ubuntu
|
||||
runs-on: ubuntu-24.04
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-24.04
|
||||
url: https://github.com/neovim/neovim/releases/download/v0.10.0/nvim-linux64.tar.gz
|
||||
manager: sudo apt-get
|
||||
packages: -y fd-find tree-sitter-cli
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- run: date +%F > todays-date
|
||||
- name: Restore cache for today's nightly.
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: _neovim
|
||||
key: ${{ runner.os }}-${{ matrix.url }}-${{ hashFiles('todays-date') }}
|
||||
|
||||
- name: Run Lint
|
||||
run: make lint
|
||||
- name: Prepare
|
||||
run: |
|
||||
${{ matrix.manager }} update
|
||||
${{ matrix.manager }} install ${{ matrix.packages }}
|
||||
test -d _neovim || {
|
||||
mkdir -p _neovim
|
||||
curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
|
||||
}
|
||||
|
||||
- name: Run Tests
|
||||
run: make test
|
||||
- name: Run tests
|
||||
run: |
|
||||
export PATH="${PWD}/_neovim/bin:${PATH}"
|
||||
export VIMRUNTIME="${PWD}/_neovim/share/nvim/runtime"
|
||||
make test
|
||||
|
@ -116,9 +116,7 @@ vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with(
|
||||
)
|
||||
```
|
||||
|
||||
## Fork Status
|
||||
## Sponsor
|
||||
If you find this plugin useful, please consider sponsoring the project.
|
||||
|
||||
This is forked from https://github.com/windwp/nvim-ts-autotag due to the primary maintainer's disappearance. Any
|
||||
PRs/work given to this fork _may_ end up back in the original repository if the primary maintainer comes back.
|
||||
|
||||
Full credit to [@windwp](https://github.com/windwp) for the creation of this plugin. Here's to hoping they're ok and will be back sometime down the line.
|
||||
[Sponsor](https://paypal.me/trieule1vn)
|
||||
|
48
tests/minimal.vim
Normal file
48
tests/minimal.vim
Normal file
@ -0,0 +1,48 @@
|
||||
set rtp +=.
|
||||
set rtp +=../plenary.nvim/
|
||||
set rtp +=../nvim-treesitter/
|
||||
set rtp +=../playground/
|
||||
set rtp +=../nvim-treesitter-rescript/
|
||||
|
||||
|
||||
|
||||
runtime! plugin/plenary.vim
|
||||
runtime! plugin/nvim-treesitter.lua
|
||||
runtime! plugin/nvim-treesitter-playground.lua
|
||||
runtime! plugin/nvim-treesitter-rescript.vim
|
||||
|
||||
|
||||
set noswapfile
|
||||
set nobackup
|
||||
|
||||
filetype indent off
|
||||
set nowritebackup
|
||||
set noautoindent
|
||||
set nocindent
|
||||
set nosmartindent
|
||||
set indentexpr=
|
||||
set foldlevel=9999
|
||||
|
||||
|
||||
lua << EOF
|
||||
_G.__is_log=true
|
||||
_G.ts_filetypes = {
|
||||
'html', 'javascript', 'typescript', 'svelte', 'vue', 'tsx', 'php', 'glimmer', 'rescript', 'embedded_template'
|
||||
}
|
||||
require("nvim-treesitter.configs").setup({
|
||||
ensure_installed = _G.ts_filetypes,
|
||||
highlight = { enable = true },
|
||||
sync_install = true
|
||||
})
|
||||
vim.treesitter.language.register('tsx', 'typescriptreact')
|
||||
vim.treesitter.language.register('embedded_template', 'eruby')
|
||||
require("plenary/busted")
|
||||
vim.cmd[[luafile ./tests/test-utils.lua]]
|
||||
require("nvim-ts-autotag").setup({
|
||||
enable = true,
|
||||
enable_rename = true,
|
||||
enable_close = true,
|
||||
enable_close_on_slash = true,
|
||||
})
|
||||
EOF
|
||||
|
@ -1,8 +1,5 @@
|
||||
local M = {}
|
||||
|
||||
-- Ensure our test lua files are in `package.path`
|
||||
package.path = "?.lua;" .. package.path
|
||||
|
||||
local utils = require("tests.utils.utils")
|
||||
local root = utils.paths.Root:push(".deps/")
|
||||
|
||||
@ -140,5 +137,7 @@ end
|
||||
|
||||
M.setup({
|
||||
["plenary.nvim"] = "https://github.com/nvim-lua/plenary.nvim",
|
||||
["popup.nvim"] = "https://github.com/nvim-lua/popup.nvim",
|
||||
["nvim-treesitter"] = "https://github.com/nvim-treesitter/nvim-treesitter",
|
||||
["playground"] = "https://github.com/nvim-treesitter/playground",
|
||||
})
|
||||
|
@ -1,7 +1,3 @@
|
||||
-- Ensure our test lua files are in `package.path`
|
||||
local fdir = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":p:h:h")
|
||||
package.path = fdir .. "/?.lua;" .. package.path
|
||||
|
||||
require("tests.minimal_init")
|
||||
|
||||
---@type string
|
||||
|
Loading…
x
Reference in New Issue
Block a user