We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ad9c74 commit 4449bcaCopy full SHA for 4449bca
ftplugin/http.lua
@@ -2,6 +2,13 @@ vim.bo.commentstring = "# %s"
2
vim.wo.conceallevel = 0
3
vim.opt.comments:remove("n:>")
4
5
+-- NOTE: Manually start tree-sitter-http highlighting.
6
+-- Just in case user didn't enabled auto highlighting option.
7
+local ok = pcall(vim.treesitter.start, 0, "http")
8
+if not ok then
9
+ vim.notify("Failed to attach tree-sitter-http parser to current buffer", vim.log.levels.ERROR, { title = "rest.nvim" })
10
+end
11
+
12
local dotenv = require("rest-nvim.dotenv")
13
14
vim.b._rest_nvim_count = 1
0 commit comments