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:
parent
5e762b4346
commit
c5e788a3f1
6 changed files with 66 additions and 20 deletions
|
|
@ -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" },
|
||||
|
|
|
|||
|
|
@ -4,5 +4,14 @@ return {
|
|||
opts = {
|
||||
ensure_installed = { "html" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"windwp/nvim-ts-autotag",
|
||||
optional = true,
|
||||
opts = {
|
||||
filetypes = {
|
||||
'html',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,16 @@ return {
|
|||
opts = {
|
||||
ensure_installed = { "markdown" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"windwp/nvim-ts-autotag",
|
||||
optional = true,
|
||||
opts = {
|
||||
filetypes = {
|
||||
'markdown',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
code = {
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
|
|
|
|||
|
|
@ -20,6 +20,15 @@ return {
|
|||
ensure_installed = { "vue" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"windwp/nvim-ts-autotag",
|
||||
optional = true,
|
||||
opts = {
|
||||
filetypes = {
|
||||
'vue',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
ft = { "vue" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue