2021-03-08 06:19:01 -06:00
|
|
|
set rtp +=.
|
2021-04-15 23:37:59 -05:00
|
|
|
set rtp +=../plenary.nvim/
|
2023-04-27 17:19:09 -05:00
|
|
|
set rtp +=../nvim-treesitter/
|
2021-04-15 23:37:59 -05:00
|
|
|
set rtp +=../playground/
|
2023-04-27 17:19:09 -05:00
|
|
|
set rtp +=../nvim-treesitter-rescript/
|
|
|
|
|
2021-03-08 06:19:01 -06:00
|
|
|
|
2021-04-19 06:50:38 -05:00
|
|
|
|
2021-03-08 06:19:01 -06:00
|
|
|
runtime! plugin/plenary.vim
|
2023-04-27 17:19:09 -05:00
|
|
|
runtime! plugin/nvim-treesitter.lua
|
|
|
|
runtime! plugin/nvim-treesitter-playground.lua
|
|
|
|
runtime! plugin/nvim-treesitter-rescript.vim
|
2021-04-19 06:50:38 -05:00
|
|
|
|
2021-03-08 06:19:01 -06:00
|
|
|
|
|
|
|
set noswapfile
|
|
|
|
set nobackup
|
|
|
|
|
|
|
|
filetype indent off
|
|
|
|
set nowritebackup
|
|
|
|
set noautoindent
|
|
|
|
set nocindent
|
|
|
|
set nosmartindent
|
|
|
|
set indentexpr=
|
2023-03-16 21:19:45 -05:00
|
|
|
set foldlevel=9999
|
2021-03-08 06:19:01 -06:00
|
|
|
|
2021-03-12 18:52:51 -06:00
|
|
|
|
2021-03-08 06:19:01 -06:00
|
|
|
lua << EOF
|
2021-04-19 06:50:38 -05:00
|
|
|
_G.__is_log=true
|
2023-03-16 21:19:45 -05:00
|
|
|
_G.ts_filetypes = {
|
2023-04-27 17:19:09 -05:00
|
|
|
'html', 'javascript', 'typescript', 'svelte', 'vue', 'tsx', 'php', 'glimmer', 'rescript', 'embedded_template'
|
2023-03-16 21:19:45 -05:00
|
|
|
}
|
2024-05-18 08:18:45 -05:00
|
|
|
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')
|
2021-03-08 06:19:01 -06:00
|
|
|
require("plenary/busted")
|
2023-03-16 21:19:45 -05:00
|
|
|
vim.cmd[[luafile ./tests/test-utils.lua]]
|
2023-12-10 02:01:33 -06:00
|
|
|
require("nvim-ts-autotag").setup({
|
|
|
|
enable = true,
|
|
|
|
enable_rename = true,
|
|
|
|
enable_close = true,
|
|
|
|
enable_close_on_slash = true,
|
|
|
|
})
|
2021-03-08 06:19:01 -06:00
|
|
|
EOF
|
2021-03-12 18:52:51 -06:00
|
|
|
|