♻️ refactor(nvim): treesitter modules extracted into extras
This commit is contained in:
parent
41a5a6c3ce
commit
c1f1003dc4
4 changed files with 17 additions and 23 deletions
4
.config/nvim/lua/plugins/extras/coding/endwise.lua
Normal file
4
.config/nvim/lua/plugins/extras/coding/endwise.lua
Normal file
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
"RRethy/nvim-treesitter-endwise",
|
||||
event = "BufRead",
|
||||
}
|
5
.config/nvim/lua/plugins/extras/coding/puppeteer.lua
Normal file
5
.config/nvim/lua/plugins/extras/coding/puppeteer.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
"chrisgrieser/nvim-puppeteer",
|
||||
dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
lazy = false,
|
||||
}
|
|
@ -1,4 +1,12 @@
|
|||
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",
|
||||
dependencies = {
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
}
|
Loading…
Add table
Reference in a new issue