Skip to content

Commit f09e225

Browse files
committed
cleanup: remove nvim-treesitter HTTP parser branch modifications code
1 parent 2809184 commit f09e225

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lua/rest-nvim/init.lua

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,6 @@ function rest.setup(user_configs)
2323

2424
-- Set up rest.nvim autocommands and commands
2525
autocmds.setup()
26-
27-
-- Set up tree-sitter HTTP parser branch
28-
-- NOTE: remove this piece of code once rest.nvim v2 has been pushed,
29-
-- and tree-sitter-http `next` branch has been merged
30-
-- and nvim-treesitter http is up-to-date
31-
local ok, treesitter_parsers = pcall(require, "nvim-treesitter.parsers")
32-
if ok then
33-
local parser_config = treesitter_parsers.get_parser_configs()
34-
35-
parser_config.http = vim.tbl_deep_extend("force", parser_config.http, {
36-
install_info = { branch = "next" },
37-
})
38-
end
3926
end
4027

4128
return rest

0 commit comments

Comments
 (0)