2026-04-14 05:48:42 +05:00
|
|
|
vim.api.nvim_create_autocmd('FileType', {
|
|
|
|
|
pattern = { 'json' },
|
|
|
|
|
callback = function()
|
|
|
|
|
vim.api.nvim_set_option_value('formatprg', 'jq', { scope = 'local' })
|
|
|
|
|
end,
|
|
|
|
|
})
|
|
|
|
|
|
2026-04-10 21:23:52 +05:00
|
|
|
vim.g.rest_nvim = {
|
|
|
|
|
ui = {
|
|
|
|
|
keybinds = {
|
|
|
|
|
prev = 'J',
|
|
|
|
|
next = 'L',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return {
|
2026-04-14 05:48:42 +05:00
|
|
|
'rest-nvim/rest.nvim',
|
2026-04-10 21:23:52 +05:00
|
|
|
dependencies = {
|
2026-04-14 05:48:42 +05:00
|
|
|
'nvim-treesitter/nvim-treesitter',
|
2026-04-10 21:23:52 +05:00
|
|
|
opts = function (_, opts)
|
|
|
|
|
opts.ensure_installed = opts.ensure_installed or {}
|
2026-04-14 05:48:42 +05:00
|
|
|
table.insert(opts.ensure_installed, 'http')
|
2026-04-10 21:23:52 +05:00
|
|
|
end,
|
|
|
|
|
},
|
|
|
|
|
}
|