@@ -49,3 +49,12 @@ vim.api.nvim_create_autocmd('FileType', {
vim.bo.textwidth = 80
end,
})
+
+vim.api.nvim_create_autocmd('FileType', {
+ pattern = 'http',
+ callback = function(opts)
+ vim.keymap.set('n', '<Leader>r', '<Plug>RestNvim', {
+ buffer = opts.buf,
+ })
+ end,
+})
@@ -6,6 +6,7 @@
, makeWrapper
, fd
, ripgrep
+, html-tidy
, node-lsp
, vimPlugins
, fetchFromGitHub
@@ -53,6 +54,7 @@ let
extraPath = [
fd
ripgrep
+ html-tidy
node-lsp
tsc
];
@@ -65,6 +67,7 @@ let
tree-sitter-bash
tree-sitter-css
tree-sitter-elvish
+ tree-sitter-http
tree-sitter-go
tree-sitter-javascript
tree-sitter-json
@@ -119,6 +119,9 @@ require('mini.ai').setup({
-- align actions
require('mini.align').setup()
+-- rest client
+require('rest-nvim').setup({})
-- Use Treesitter for syntax highlighting
require('nvim-treesitter.configs').setup({
highlight = {
@@ -74,5 +74,9 @@
"leafgarland/typescript-vim": {
"rev": "52f3ca3474d51f5021696ffb7297d989e49121ac",
"sha256": "12qcp82jkaa6nmdb0s4an29bfp9mzkkkxz2sfhm93x5506g8gk4l"
+ },
+ "rest-nvim/rest.nvim": {
+ "rev": "d8dc204e9f6fd930d9d1d709f0d19138f804431a",
+ "sha256": "11a2ac86d9jr7wn62ylnr47j44pz9igzmia55cka8f1530nm422s"
}