mirror of https://github.com/LazyVim/starter
update config
parent
6a9ea2413c
commit
8c77d9ab6b
|
@ -3,7 +3,7 @@
|
||||||
"lazyvim.plugins.extras.formatting.prettier"
|
"lazyvim.plugins.extras.formatting.prettier"
|
||||||
],
|
],
|
||||||
"news": {
|
"news": {
|
||||||
"NEWS.md": "2850"
|
"NEWS.md": "3314"
|
||||||
},
|
},
|
||||||
"version": 3
|
"version": 3
|
||||||
}
|
}
|
|
@ -24,7 +24,7 @@ function SaveHttpResp()
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.api.nvim_set_keymap('n', '<leader>rr',
|
vim.api.nvim_set_keymap('n', '<leader>rr',
|
||||||
":lua require('rest-nvim').run()<CR>",
|
"<cmd>Rest run<cr>",
|
||||||
{ noremap = true, silent = true })
|
{ noremap = true, silent = true })
|
||||||
|
|
||||||
vim.api.nvim_set_keymap('n', '<leader>rs',
|
vim.api.nvim_set_keymap('n', '<leader>rs',
|
||||||
|
|
|
@ -29,6 +29,7 @@ return {
|
||||||
"go",
|
"go",
|
||||||
"http",
|
"http",
|
||||||
"sql",
|
"sql",
|
||||||
|
"graphql",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,43 +1,59 @@
|
||||||
|
-- return {
|
||||||
|
-- "git@github.com:onns/rest.nvim.git",
|
||||||
|
-- dependencies = { { "git@github.com:nvim-lua/plenary.nvim.git" } },
|
||||||
|
-- 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,
|
||||||
|
-- -- 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 = true,
|
||||||
|
-- show_http_info = true,
|
||||||
|
-- show_headers = true,
|
||||||
|
-- -- 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',
|
||||||
|
-- custom_dynamic_variables = {},
|
||||||
|
-- yank_dry_run = true,
|
||||||
|
-- })
|
||||||
|
-- end
|
||||||
|
-- }
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"git@github.com:onns/rest.nvim.git",
|
{
|
||||||
dependencies = { { "git@github.com:nvim-lua/plenary.nvim.git" } },
|
"vhyrro/luarocks.nvim",
|
||||||
config = function()
|
priority = 1000,
|
||||||
require("rest-nvim").setup({
|
config = true,
|
||||||
-- Open request results in a horizontal split
|
},
|
||||||
result_split_horizontal = false,
|
{
|
||||||
-- Keep the http file buffer above|left when split horizontal|vertical
|
"rest-nvim/rest.nvim",
|
||||||
result_split_in_place = false,
|
ft = "http",
|
||||||
-- Skip SSL verification, useful for unknown certificates
|
dependencies = { "luarocks.nvim" },
|
||||||
skip_ssl_verification = false,
|
config = function()
|
||||||
-- Encode URL before making request
|
require("rest-nvim").setup()
|
||||||
encode_url = true,
|
end,
|
||||||
-- 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 = true,
|
|
||||||
show_http_info = true,
|
|
||||||
show_headers = true,
|
|
||||||
-- 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',
|
|
||||||
custom_dynamic_variables = {},
|
|
||||||
yank_dry_run = true,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue