Skip to content

Commit

Permalink
cleanup: remove nvim-treesitter HTTP parser branch modifications code
Browse files Browse the repository at this point in the history
  • Loading branch information
NTBBloodbath committed Mar 18, 2024
1 parent 2809184 commit f09e225
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lua/rest-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,6 @@ function rest.setup(user_configs)

-- Set up rest.nvim autocommands and commands
autocmds.setup()

-- Set up tree-sitter HTTP parser branch
-- NOTE: remove this piece of code once rest.nvim v2 has been pushed,
-- and tree-sitter-http `next` branch has been merged
-- and nvim-treesitter http is up-to-date
local ok, treesitter_parsers = pcall(require, "nvim-treesitter.parsers")
if ok then
local parser_config = treesitter_parsers.get_parser_configs()

parser_config.http = vim.tbl_deep_extend("force", parser_config.http, {
install_info = { branch = "next" },
})
end
end

return rest

0 comments on commit f09e225

Please sign in to comment.