To install kulala.nvim, use the following configuration with lazy.nvim.
Prerequisites:
- Neovim 0.12+
- cURL
- git
- tree-sitter-cli
Architecture Support:
- MacOS/Linux: x86_64 and arm64
- Windows: x86_64 only
Note: cURL is required to download the kulala-core backend, git is required for the kulala-http tree-sitter parser, and tree-sitter-cli is required to generate the parser from the included grammar.
require("lazy").setup({
{
"mistweaverco/kulala.nvim",
-- Load before session save/restore so VimLeavePre and SessionLoadPost hooks are registered.
event = { "SessionLoadPost", "VimLeavePre" },
keys = {
{ "<leader>Rs", desc = "Send request" },
{ "<leader>Ra", desc = "Send all requests" },
{ "<leader>Rb", desc = "Open scratchpad" },
},
-- See opts.lsp.enforce_external_script_naming_convention
-- to restrict LSP capabilities to *.http, *.http.js, *.http.ts and *.http.lua files.
ft = {"http", "rest", "javascript", "lua"},
opts = {},
},
})