♻️ refactor(nvim): treesitter modules extracted into extras

This commit is contained in:
Sergio Laín 2023-11-16 14:57:26 +01:00
parent 41a5a6c3ce
commit c1f1003dc4
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
4 changed files with 17 additions and 23 deletions

View file

@ -0,0 +1,4 @@
return {
"RRethy/nvim-treesitter-endwise",
event = "BufRead",
}

View file

@ -0,0 +1,5 @@
return {
"chrisgrieser/nvim-puppeteer",
dependencies = "nvim-treesitter/nvim-treesitter",
lazy = false,
}

View file

@ -1,4 +1,12 @@
return { return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "http" })
end
end,
},
{ {
"rest-nvim/rest.nvim", "rest-nvim/rest.nvim",
dependencies = { dependencies = {

View file

@ -1,23 +0,0 @@
return {
{
"nvim-treesitter/nvim-treesitter",
---@type TSConfig
---@diagnostic disable-next-line: missing-fields
opts = {
endwise = { enable = true },
ensure_installed = {
"http",
"ini",
},
},
},
{
"RRethy/nvim-treesitter-endwise",
event = "BufRead",
},
{
"chrisgrieser/nvim-puppeteer",
dependencies = "nvim-treesitter/nvim-treesitter",
lazy = false,
},
}