mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2025-01-26 01:13:53 -06:00
Compare commits
33 Commits
e4f9252120
...
1aff7cb8ed
Author | SHA1 | Date | |
---|---|---|---|
1aff7cb8ed | |||
38ac929e15 | |||
d06dc900f3 | |||
98fca9bf0e | |||
ccb2a827f2 | |||
c2bd871627 | |||
62f606918b | |||
e2a5a12492 | |||
9ce1d3765b | |||
5578f796de | |||
968b2ccc5d | |||
0dcfc4149f | |||
0291c8c637 | |||
14e1f22a0d | |||
ef175229a6 | |||
b146a98159 | |||
b9a588ed7e | |||
a92a4e97ec | |||
81d0c78475 | |||
94758d5394 | |||
25db9a0912 | |||
7c2e60f9e8 | |||
e9e94e7fc5 | |||
|
462b04fd96 | ||
6e69cc2751 | |||
4aee573e50 | |||
04089f0b7d | |||
34f6d24007 | |||
bc8dea7a78 | |||
|
6bf91cad7e | ||
629011167b | |||
a062fe5f7d | |||
79884fb3b3 |
39
.github/workflows/ci.yml
vendored
39
.github/workflows/ci.yml
vendored
@ -1,39 +1,16 @@
|
||||
name: Tests
|
||||
|
||||
on: [push, pull_request]
|
||||
on: [push, pull_request, workflow_call]
|
||||
|
||||
jobs:
|
||||
x64-ubuntu:
|
||||
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
|
||||
name: nix-runner
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- 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') }}
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- 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 Lint
|
||||
run: make lint
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
export PATH="${PWD}/_neovim/bin:${PATH}"
|
||||
export VIMRUNTIME="${PWD}/_neovim/share/nvim/runtime"
|
||||
make test
|
||||
- name: Run Tests
|
||||
run: make test
|
||||
|
@ -116,7 +116,9 @@ vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with(
|
||||
)
|
||||
```
|
||||
|
||||
## Sponsor
|
||||
If you find this plugin useful, please consider sponsoring the project.
|
||||
## Fork Status
|
||||
|
||||
[Sponsor](https://paypal.me/trieule1vn)
|
||||
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.
|
||||
|
@ -1,48 +0,0 @@
|
||||
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,5 +1,8 @@
|
||||
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/")
|
||||
|
||||
@ -137,7 +140,5 @@ 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,3 +1,7 @@
|
||||
-- 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