chore: remove rest.nvim plugin
Couldn't make it work with luarocks.
This commit is contained in:
parent
6493c970e3
commit
0e45fecf33
@ -104,70 +104,70 @@ return {
|
|||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = true,
|
config = true,
|
||||||
},
|
},
|
||||||
{
|
-- {
|
||||||
'rest-nvim/rest.nvim',
|
-- 'rest-nvim/rest.nvim',
|
||||||
dependencies = { 'luarocks.nvim' },
|
-- dependencies = { 'luarocks.nvim' },
|
||||||
ft = {
|
-- ft = {
|
||||||
'http',
|
-- 'http',
|
||||||
'rest',
|
-- 'rest',
|
||||||
},
|
-- },
|
||||||
config = function()
|
-- config = function()
|
||||||
require('rest-nvim').setup {
|
-- require('rest-nvim').setup {
|
||||||
client = 'curl',
|
-- client = 'curl',
|
||||||
custom_dynamic_variables = {},
|
-- custom_dynamic_variables = {},
|
||||||
encode_url = true,
|
-- encode_url = true,
|
||||||
env_file = '.env',
|
-- env_file = '.env',
|
||||||
skip_ssl_verification = false,
|
-- skip_ssl_verification = false,
|
||||||
highlight = {
|
-- highlight = {
|
||||||
enable = true,
|
-- enable = true,
|
||||||
timeout = 15,
|
-- timeout = 15,
|
||||||
},
|
-- },
|
||||||
result = {
|
-- result = {
|
||||||
behavior = {
|
-- behavior = {
|
||||||
decode_url = true,
|
-- decode_url = true,
|
||||||
formatters = {
|
-- formatters = {
|
||||||
json = 'jq',
|
-- json = 'jq',
|
||||||
html = false,
|
-- html = false,
|
||||||
},
|
-- },
|
||||||
show_info = {
|
-- show_info = {
|
||||||
curl_command = true,
|
-- curl_command = true,
|
||||||
headers = true,
|
-- headers = true,
|
||||||
http_info = true,
|
-- http_info = true,
|
||||||
url = true,
|
-- url = true,
|
||||||
},
|
-- },
|
||||||
statistics = {
|
-- statistics = {
|
||||||
enable = true,
|
-- enable = true,
|
||||||
stats = {
|
-- stats = {
|
||||||
{ 'total_time', title = 'Time taken:' },
|
-- { 'total_time', title = 'Time taken:' },
|
||||||
{ 'size_download_t', title = 'Download size:' },
|
-- { 'size_download_t', title = 'Download size:' },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
split = {
|
-- split = {
|
||||||
horizontal = false,
|
-- horizontal = false,
|
||||||
in_place = false,
|
-- in_place = false,
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
}
|
-- }
|
||||||
end,
|
-- end,
|
||||||
keys = function()
|
-- keys = function()
|
||||||
local status_ok, which_key = pcall(require, 'which-key')
|
-- local status_ok, which_key = pcall(require, 'which-key')
|
||||||
if status_ok then
|
-- if status_ok then
|
||||||
which_key.register {
|
-- which_key.register {
|
||||||
['<leader>t'] = { name = 'Res[t]', _ = 'which_key_ignore' },
|
-- ['<leader>t'] = { name = 'Res[t]', _ = 'which_key_ignore' },
|
||||||
}
|
-- }
|
||||||
end
|
-- end
|
||||||
return {
|
-- return {
|
||||||
{ '<leader>tr', '<cmd>Rest run<cr>', desc = 'Run the request under cursor' },
|
-- { '<leader>tr', '<cmd>Rest run<cr>', desc = 'Run the request under cursor' },
|
||||||
{
|
-- {
|
||||||
'<leader>tp',
|
-- '<leader>tp',
|
||||||
'<Plug>RestNvimPreview',
|
-- '<Plug>RestNvimPreview',
|
||||||
desc = 'Preview the curl command for the request under cursor',
|
-- desc = 'Preview the curl command for the request under cursor',
|
||||||
},
|
-- },
|
||||||
{ '<leader>tl', '<cmd>Rest run last<cr>', desc = 'Re-run the last request' },
|
-- { '<leader>tl', '<cmd>Rest run last<cr>', desc = 'Re-run the last request' },
|
||||||
}
|
-- }
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
{
|
{
|
||||||
'akinsho/toggleterm.nvim',
|
'akinsho/toggleterm.nvim',
|
||||||
opts = {
|
opts = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user