diff --git a/nvim/.config/nvim/lua/lazy-plugins/feat-kulala-nvim.lua b/nvim/.config/nvim/lua/lazy-plugins/feat-kulala-nvim.lua new file mode 100644 index 0000000..f9d5c3a --- /dev/null +++ b/nvim/.config/nvim/lua/lazy-plugins/feat-kulala-nvim.lua @@ -0,0 +1,17 @@ +return { + "mistweaverco/kulala.nvim", + opts = { + global_keymaps = true, + global_keymaps_prefix = "r", + kulala_keymaps_prefix = "", + ui = { + display_mode = "float", + }, + }, + ft = { "http", "rest" }, + keys = { + { "rs", desc = "Send request" }, + { "ra", desc = "Send all requests" }, + { "rb", desc = "Open scratchpad" }, + }, +} diff --git a/nvim/.config/nvim/lua/lazy-plugins/feat-rest-nvim.lua b/nvim/.config/nvim/lua/lazy-plugins/feat-rest-nvim.lua deleted file mode 100644 index 1e796fc..0000000 --- a/nvim/.config/nvim/lua/lazy-plugins/feat-rest-nvim.lua +++ /dev/null @@ -1,53 +0,0 @@ -return { - "rest-nvim/rest.nvim", - dependencies = { { "nvim-lua/plenary.nvim" } }, - event = "BufEnter *.http", - config = function() - require("rest-nvim").setup({ - -- Open request results in a horizontal split - result_split_horizontal = false, - -- Keep the http file buffer above|left when split horizontal|vertical - result_split_in_place = false, - -- stay in current windows (.http file) or change to results window (default) - stay_in_current_window_after_split = false, - -- Skip SSL verification, useful for unknown certificates - skip_ssl_verification = false, - -- Encode URL before making request - encode_url = true, - -- 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 the generated curl command in case you want to launch - -- the same request via the terminal (can be verbose) - show_curl_command = false, - show_http_info = true, - show_headers = true, - -- table of curl `--write-out` variables or false if disabled - -- for more granular control see Statistics Spec - show_statistics = false, - -- executables or functions for formatting response body [optional] - -- set them to false if you want to disable them - formatters = { - json = "jq", - html = function(body) - return vim.fn.system({ "tidy", "-i", "-q", "-" }, body) - end, - }, - }, - -- Jump to request line on run - jump_to_request = false, - env_file = ".env", - -- for telescope select - env_pattern = "\\.env$", - env_edit_command = "tabedit", - custom_dynamic_variables = {}, - yank_dry_run = true, - search_back = true, - }) - end, -}