Neovim support for rest
Depends on: nvim-treesitter/nvim-treesitter
{
'taybart/rest.nvim',
dependencies= { -- used for syntax highlighting, parser will be installed if not available (hcl)'nvim-treesitter/nvim-treesitter', -- optional dependency that will add code actions in rest files'taybart/code-actions.nvim',
},
opts= {
-- add no wrap to rest filesno_wrap=true,
-- set to false to prevent code action registration-- you do not need to set this to false if you do -- not add code actions as a dependencycode_actions=true,
},
}:ExecuteBlock [block number]
:ExecuteBlockUnderCursor
:ExecuteFile [file name]
:Export [language name]the default keymaps are:
vim.keymap.set('n', '<c-l>', execute.do_labels, {}) -- pickvim.keymap.set('n', '<c-e>', execute.block_under_cursor, {})
vim.keymap.set('n', '<c-t>', execute.file, {})