mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2025-01-06 05:59:21 -06:00
40615e9607
* Fix minimal test setup Inclusion of any config with `-u` also adds `~/.config/nvim/pack/*/start/*` to rtp, which is probably the reason for tests passing on developers' machines. This "problem" remains, and can in fact break tests through interference with other plugins. * Add eruby to default list of filetypes This merely adds tests and one line of data to default setup values.
39 lines
760 B
VimL
39 lines
760 B
VimL
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.test_rename = true
|
|
_G.test_close = true
|
|
_G.ts_filetypes = {
|
|
'html', 'javascript', 'typescript', 'svelte', 'vue', 'tsx', 'php', 'glimmer', 'rescript', 'embedded_template'
|
|
}
|
|
require("plenary/busted")
|
|
vim.cmd[[luafile ./tests/test-utils.lua]]
|
|
require("nvim-ts-autotag").setup()
|
|
EOF
|
|
|