mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
## Description [Kulala's](https://github.com/mistweaverco/kulala.nvim) keys are currently globally active. This PR makes them available in .http files only. ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
25 lines
793 B
Lua
25 lines
793 B
Lua
vim.filetype.add({
|
|
extension = {
|
|
["http"] = "http",
|
|
},
|
|
})
|
|
return {
|
|
{
|
|
"mistweaverco/kulala.nvim",
|
|
ft = "http",
|
|
keys = {
|
|
{ "<leader>R", "", desc = "+Rest", ft = "http" },
|
|
{ "<leader>Rs", "<cmd>lua require('kulala').run()<cr>", desc = "Send the request", ft = "http" },
|
|
{ "<leader>Rt", "<cmd>lua require('kulala').toggle_view()<cr>", desc = "Toggle headers/body", ft = "http" },
|
|
{ "<leader>Rp", "<cmd>lua require('kulala').jump_prev()<cr>", desc = "Jump to previous request", ft = "http" },
|
|
{ "<leader>Rn", "<cmd>lua require('kulala').jump_next()<cr>", desc = "Jump to next request", ft = "http" },
|
|
},
|
|
opts = {},
|
|
},
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = {
|
|
ensure_installed = { "http", "graphql" },
|
|
},
|
|
},
|
|
}
|