diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2026-09-27 12:46:49 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2026-09-27 12:46:49 -0300 |
| commit | df7c711e2a49d51249350f52c63274b72aacb739 (patch) | |
| tree | 426da3b65371f857f3ee3d9893d7ff3279aac02e /lua/plugins/rest.lua | |
| parent | a0bd84df02ce235123dfc939327e8bd33dffdd7e (diff) | |
| download | nvim-conf-df7c711e2a49d51249350f52c63274b72aacb739.tar.gz nvim-conf-df7c711e2a49d51249350f52c63274b72aacb739.zip | |
Migración de plugins a funcionalidad nativa: statusline y treesitter propios, se quitan mason, lualine, mini, notify y otros
Diffstat (limited to 'lua/plugins/rest.lua')
| -rw-r--r-- | lua/plugins/rest.lua | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/lua/plugins/rest.lua b/lua/plugins/rest.lua deleted file mode 100644 index b716eec..0000000 --- a/lua/plugins/rest.lua +++ /dev/null @@ -1,55 +0,0 @@ -return { - "NTBBloodbath/rest.nvim", - enabled = false, - 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, - encode_url = 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>hn", - rest_nvim.run, - { noremap = true, buffer = buff, desc = "Run near http request" } - ) - vim.keymap.set( - "n", - "<leader>hl", - rest_nvim.last, - { noremap = true, buffer = buff, desc = "Run last http resquest" } - ) - vim.keymap.set("n", "<leader>hp", function() - rest_nvim.run(true) - end, { noremap = true, buffer = buff, desc = "Preview http curl" }) - end, - }) - end, -} |