diff --git a/.config/nvim/lua/plugins/extras/coding/endwise.lua b/.config/nvim/lua/plugins/extras/coding/endwise.lua new file mode 100644 index 00000000..416b1d91 --- /dev/null +++ b/.config/nvim/lua/plugins/extras/coding/endwise.lua @@ -0,0 +1,4 @@ +return { + "RRethy/nvim-treesitter-endwise", + event = "BufRead", +} diff --git a/.config/nvim/lua/plugins/extras/coding/puppeteer.lua b/.config/nvim/lua/plugins/extras/coding/puppeteer.lua new file mode 100644 index 00000000..d06759e6 --- /dev/null +++ b/.config/nvim/lua/plugins/extras/coding/puppeteer.lua @@ -0,0 +1,5 @@ +return { + "chrisgrieser/nvim-puppeteer", + dependencies = "nvim-treesitter/nvim-treesitter", + lazy = false, +} diff --git a/.config/nvim/lua/plugins/extras/editor/rest-client.lua b/.config/nvim/lua/plugins/extras/editor/rest-client.lua index c7519163..d66bb0ee 100644 --- a/.config/nvim/lua/plugins/extras/editor/rest-client.lua +++ b/.config/nvim/lua/plugins/extras/editor/rest-client.lua @@ -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 = { diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua deleted file mode 100644 index 42f2119e..00000000 --- a/.config/nvim/lua/plugins/treesitter.lua +++ /dev/null @@ -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, - }, -}