(nvim) fix issues with ts-autotag
This commit is contained in:
parent
601fd3598d
commit
51824ef86b
4 changed files with 48 additions and 1 deletions
|
|
@ -214,6 +214,29 @@ vim.pack.add({
|
|||
|
||||
require("mini.pairs").setup()
|
||||
|
||||
-- auto closing tags
|
||||
vim.pack.add({
|
||||
{
|
||||
src = "https://github.com/windwp/nvim-ts-autotag",
|
||||
version = "8e1c0a389f20bf7f5b0dd0e00306c1247bda2595",
|
||||
},
|
||||
})
|
||||
|
||||
require("nvim-ts-autotag").setup({
|
||||
filetypes = {
|
||||
"html",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"javascriptreact",
|
||||
"typescriptreact",
|
||||
"svelte",
|
||||
"vue",
|
||||
"xml",
|
||||
"php",
|
||||
"templ",
|
||||
},
|
||||
})
|
||||
|
||||
-- telescope
|
||||
vim.pack.add({
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,6 +21,14 @@ local ensured_installed = {
|
|||
"typescript",
|
||||
"lua",
|
||||
"templ",
|
||||
-- parsers for nvim-ts-autotag filetypes; without these
|
||||
-- vim.treesitter.get_parser() returns nil on nvim 0.12 and
|
||||
-- autotag crashes on InsertLeave
|
||||
"html",
|
||||
"tsx",
|
||||
"svelte",
|
||||
"vue",
|
||||
"xml",
|
||||
}
|
||||
local already_installed = treesitter.get_installed()
|
||||
local parsers_to_install = vim.iter(ensured_installed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue