1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 19:30:01 +02:00

nvim: treesitter: move autotag config to lang files.

This commit is contained in:
Henrik Hautakoski 2024-09-06 12:35:39 +02:00
parent 5e762b4346
commit c5e788a3f1
6 changed files with 66 additions and 20 deletions

View file

@ -7,25 +7,7 @@ return {
-- "nvim-treesitter/nvim-treesitter-textobjects",
{
"windwp/nvim-ts-autotag",
opts = {
-- Filetypes to enable autotag for
filetypes = {
'html',
'javascript',
'typescript',
'javascriptreact',
'typescriptreact',
'svelte',
'vue',
'tsx',
'jsx',
'rescript',
'xml',
'php',
'blade',
'markdown',
},
},
opts = {}
},
},
opts_extend = { "ensure_installed" },

View file

@ -4,5 +4,14 @@ return {
opts = {
ensure_installed = { "html" }
}
},
{
"windwp/nvim-ts-autotag",
optional = true,
opts = {
filetypes = {
'html',
}
}
}
}

View file

@ -8,7 +8,16 @@ return {
opts = {
ensure_installed = { "markdown" }
}
}
},
{
"windwp/nvim-ts-autotag",
optional = true,
opts = {
filetypes = {
'markdown',
},
},
},
},
opts = {
code = {

View file

@ -16,6 +16,16 @@ return {
ensure_installed = { "php", "phpdoc" }
}
},
{
"windwp/nvim-ts-autotag",
optional = true,
opts = {
filetypes = {
'php',
'blade',
}
}
},
{
"neovim/nvim-lspconfig",
ft = { "php" },
@ -23,6 +33,21 @@ return {
servers = lspservers
},
},
{
"nvim-neotest/neotest",
optional = true,
ft = { "php" },
dependencies = {
"olimorris/neotest-phpunit",
'V13Axel/neotest-pest',
},
opts = {
adapters = {
"neotest-phpunit",
"neotest-pest",
}
},
},
{
"adalessa/laravel.nvim",
dependencies = {

View file

@ -9,6 +9,18 @@ return {
ensure_installed = { "typescript" }
}
},
{
"windwp/nvim-ts-autotag",
optional = true,
opts = {
filetypes = {
'javascript',
'typescript',
'tsx',
'jsx'
},
},
},
{
"neovim/nvim-lspconfig",
ft = { "ts" },

View file

@ -20,6 +20,15 @@ return {
ensure_installed = { "vue" }
}
},
{
"windwp/nvim-ts-autotag",
optional = true,
opts = {
filetypes = {
'vue',
},
},
},
{
"neovim/nvim-lspconfig",
ft = { "vue" },