feat(nvim): replace hurl plugin with more active one

This commit is contained in:
Price Hiller 2024-01-24 16:00:53 -06:00
parent 7fe6d5abac
commit 447644c128
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
3 changed files with 27 additions and 9 deletions

View File

@ -1,5 +0,0 @@
vim.keymap.set("n", "<leader>fr", "<Cmd>Hurl<CR>", {
buffer = true,
})
vim.opt_local.commentstring = "# %s"

View File

@ -0,0 +1,27 @@
return {
{
"jellydn/hurl.nvim",
dependencies = { "MunifTanjim/nui.nvim" },
ft = "hurl",
opts = {
debug = false,
mode = "split",
formatters = {
json = { 'jq' },
html = {
'prettier',
'--parser',
'html',
},
},
},
keys = {
{ "<leader>fr", "<cmd>HurlRunner<CR>", desc = "Hurl: Runner" },
{ "<leader>fa", "<cmd>HurlRunnerAt<CR>", desc = "Hurl: Run Api request" },
{ "<leader>fe", "<cmd>HurlRunnerToEntry<CR>", desc = "Hurl: Run Api request to entry" },
{ "<leader>fm", "<cmd>HurlToggleMode<CR>", desc = "Hurl: Toggle Mode" },
{ "<leader>rv", "<cmd>HurlVerbose<CR>", desc = "Hurl: Run Api in verbose mode" },
{ "<leader>fr", ":HurlRunner<CR>", desc = "Hurl: Runner", mode = "v" },
},
}
}

View File

@ -118,10 +118,6 @@ return {
event = { "BufReadPre", "BufNewFile", "WinLeave" },
dependencies = {
"nvim-treesitter/playground",
{
"pfeiferj/nvim-hurl",
config = true,
},
"nvim-treesitter/nvim-treesitter-textobjects",
"RRethy/nvim-treesitter-endwise",
},