Skip to content

Commit

Permalink
fix(plugin): Fix rest.nvim configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kang8 committed Feb 26, 2024
1 parent 75172d2 commit 0a8ac2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/plugins/lang/http.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ return {
{
'rest-nvim/rest.nvim',
ft = 'http',
opts = function()
config = function()
vim.keymap.set('n', '<leader>rh', '<Plug>RestNvim', { desc = 'http-rest: [R]equest [H]TTP' })
vim.keymap.set('n', '<leader>rp', '<Plug>RestNvimPreview', { desc = 'http-rest: [R]equest HTTP [P]review' })

return {
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
Expand Down Expand Up @@ -48,7 +48,7 @@ return {
env_file = '.env',
custom_dynamic_variables = {},
yank_dry_run = true,
}
})
end,
},
}

0 comments on commit 0a8ac2c

Please sign in to comment.