summaryrefslogtreecommitdiff
path: root/lua/config/plugins/rest.lua
diff options
context:
space:
mode:
authorMarcelo <setanta@gmail.com>2025-03-03 21:05:55 -0300
committerMarcelo Lira <setanta@gmail.com>2025-03-07 02:15:25 -0300
commitc78361a6155dd53cd1098f7fdf33acfea20dc903 (patch)
treee13b8065c4a1180f3b1d483676b55af4cba2ee4c /lua/config/plugins/rest.lua
Initial commit.
Diffstat (limited to 'lua/config/plugins/rest.lua')
-rw-r--r--lua/config/plugins/rest.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/config/plugins/rest.lua b/lua/config/plugins/rest.lua
new file mode 100644
index 0000000..e172764
--- /dev/null
+++ b/lua/config/plugins/rest.lua
@@ -0,0 +1,24 @@
+return {
+ {
+ "rest-nvim/rest.nvim",
+ dependencies = {
+ "nvim-treesitter/nvim-treesitter",
+ opts = function(_, opts)
+ opts.ensure_installed = opts.ensure_installed or {}
+ table.insert(opts.ensure_installed, "http")
+ end,
+ init = function()
+ vim.g.rest_nvim = {
+ request = {
+ hooks = {
+ user_agent = "neovim",
+ },
+ },
+ cookies = {
+ enable = false,
+ },
+ }
+ end,
+ },
+ },
+}