summaryrefslogtreecommitdiff
path: root/lua/config/plugins/rest.lua
diff options
context:
space:
mode:
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,
+ },
+ },
+}