aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/plugins/rest.lua
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-01-22 10:18:07 +0100
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-01-22 10:18:07 +0100
commit5455aacdedfb2829f000b2f120a6d5194d1227f8 (patch)
treeca73cfdf3b9106aab00c5acb3d239df61e9c43d9 /lua/alpha/plugins/rest.lua
parentbf157b642c2910abae1810c985817e42502000b5 (diff)
downloadnvim-conf-5455aacdedfb2829f000b2f120a6d5194d1227f8.tar.gz
nvim-conf-5455aacdedfb2829f000b2f120a6d5194d1227f8.zip
feat: big change on the structure of the plugins, move several things to config dir
Diffstat (limited to 'lua/alpha/plugins/rest.lua')
-rw-r--r--lua/alpha/plugins/rest.lua42
1 files changed, 0 insertions, 42 deletions
diff --git a/lua/alpha/plugins/rest.lua b/lua/alpha/plugins/rest.lua
deleted file mode 100644
index 7b60a9d..0000000
--- a/lua/alpha/plugins/rest.lua
+++ /dev/null
@@ -1,42 +0,0 @@
-return {
- "NTBBloodbath/rest.nvim",
- dependencies = { "nvim-lua/plenary.nvim" },
- ft = "http",
- config = function()
- local rest_nvim = require("rest-nvim")
-
- rest_nvim.setup({
- -- Open request results in a horizontal split
- result_split_horizontal = false,
- -- Skip SSL verification, useful for unknown certificates
- skip_ssl_verification = false,
- -- Highlight request on run
- highlight = {
- enabled = true,
- timeout = 150,
- },
- result = {
- -- toggle showing URL, HTTP info, headers at top the of result window
- show_url = true,
- show_http_info = true,
- show_headers = true,
- },
- -- Jump to request line on run
- jump_to_request = false,
- env_file = ".env",
- custom_dynamic_variables = {},
- yank_dry_run = true,
- })
-
- vim.api.nvim_create_autocmd("FileType", {
- pattern = "http",
- callback = function()
- local buff = tonumber(vim.fn.expand("<abuf>"), 10)
- vim.keymap.set("n", "<leader>rn", rest_nvim.run, { noremap = true, buffer = buff })
- vim.keymap.set("n", "<leader>rl", rest_nvim.last, { noremap = true, buffer = buff })
- vim.keymap.set("n", "<leader>rp", function() rest_nvim.run(true) end, { noremap = true, buffer = buff })
- end
- })
-
- end
-}