Compare commits

...

2 commits

Author SHA1 Message Date
5a1c0dfdc3 add hurl 2024-05-24 06:38:42 +01:00
16a31f91cb colorscheme: astro{dark => light} 2024-05-24 06:38:42 +01:00
2 changed files with 38 additions and 1 deletions

View file

@ -11,7 +11,8 @@ return {
---@type AstroUIOpts ---@type AstroUIOpts
opts = { opts = {
-- change colorscheme -- change colorscheme
colorscheme = "astrodark", -- colorscheme = "astrodark",
colorscheme = "astrolight",
-- colorscheme = "everforest", -- colorscheme = "everforest",
-- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes -- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes
highlights = { highlights = {

36
lua/plugins/hurl.lua Normal file
View file

@ -0,0 +1,36 @@
return {
"jellydn/hurl.nvim",
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
},
ft = "hurl",
opts = {
-- Show debugging info
debug = false,
-- Show notification on run
show_notification = false,
-- Show response in popup or split
mode = "split",
-- Default formatter
formatters = {
json = { "jq" }, -- Make sure you have install jq in your system, e.g: brew install jq
html = {
"prettier", -- Make sure you have install prettier in your system, e.g: npm install -g prettier
"--parser",
"html",
},
},
},
keys = {
-- Run API request
{ "<leader>A", "<cmd>HurlRunner<CR>", desc = "Run All requests" },
{ "<leader>a", "<cmd>HurlRunnerAt<CR>", desc = "Run Api request" },
{ "<leader>te", "<cmd>HurlRunnerToEntry<CR>", desc = "Run Api request to entry" },
{ "<leader>tm", "<cmd>HurlToggleMode<CR>", desc = "Hurl Toggle Mode" },
{ "<leader>tv", "<cmd>HurlVerbose<CR>", desc = "Run Api in verbose mode" },
-- Run Hurl request in visual mode
{ "<leader>h", ":HurlRunner<CR>", desc = "Hurl Runner", mode = "v" },
},
}