From 63c111d3572dc5c8d84bf1ecb50ac39959700cbf Mon Sep 17 00:00:00 2001 From: Dinesh Salunke Date: Sat, 17 Jun 2023 16:43:15 +0530 Subject: [PATCH] refactor: add plugin for rest client --- lua/plugins/util.lua | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/lua/plugins/util.lua b/lua/plugins/util.lua index 68ca233..c59bc88 100644 --- a/lua/plugins/util.lua +++ b/lua/plugins/util.lua @@ -6,8 +6,24 @@ return { { "willothy/flatten.nvim", - config = true, - lazy = true, + config = function() + require("flatten").setup() + end, + lazy = false, priority = 1001, }, + + { + "rest-nvim/rest.nvim", + opts = {}, + keys = { + { + "rt", + function() + require("rest-nvim").run() + end, + desc = "Run the rest request in the current buffer", + }, + }, + }, }