From c78361a6155dd53cd1098f7fdf33acfea20dc903 Mon Sep 17 00:00:00 2001 From: Marcelo Date: Mon, 3 Mar 2025 21:05:55 -0300 Subject: Initial commit. --- lua/config/plugins/rest.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lua/config/plugins/rest.lua (limited to 'lua/config/plugins/rest.lua') 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, + }, + }, +} -- cgit v1.2.3