Skip to content

Commit bd9e3e7

Browse files
chore: remove tree-sitter-http submodule
1 parent 24c0de9 commit bd9e3e7

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

.gitmodules

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
[submodule "tree-sitter-http"]
2-
path = tree-sitter-http
3-
url = https://github.com/boltlessengineer/tree-sitter-http
4-
branch = refactor-spec

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ format:
1010
test:
1111
LUA_PATH="$(shell luarocks path --lr-path --lua-version 5.1 --local)" \
1212
LUA_CPATH="$(shell luarocks path --lr-cpath --lua-version 5.1 --local)" \
13-
luarocks test --local --lua-version 5.1
13+
luarocks test --local --lua-version 5.1 --dev

rest.nvim-scm-1.rockspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dependencies = {
2020
"mimetypes",
2121
"xml2lua",
2222
"fidget.nvim",
23+
"tree-sitter-http >= scm",
2324
}
2425

2526
test_dependencies = {
@@ -28,6 +29,7 @@ test_dependencies = {
2829
"mimetypes",
2930
"xml2lua",
3031
"fidget.nvim",
32+
"tree-sitter-http >= scm",
3133
"nlua",
3234
}
3335

spec/minimum_init.lua

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
local test_dir = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":p:h")
22
local rest_nvim_dir = vim.fn.fnamemodify(test_dir, ":h")
33

4-
vim.opt.rtp:prepend(vim.fs.normalize("/home/ubuntu/projects/tree-sitter-http"))
5-
local parser_dir = "$HOME/.cache/tree-sitter/lib/http.so"
6-
if vim.fn.has("macunix") == 1 then
7-
parser_dir = "$HOME/Library/Caches/tree-sitter/lib/http.dylib"
8-
end
9-
vim.treesitter.language.add("http", { path = vim.fs.normalize(parser_dir) })
4+
-- TODO: find `LUA_LIBDIR`
5+
vim.treesitter.language.add("http", { path = vim.fs.normalize("~/.luarocks/lib/lua/5.1/parser/http.so") })
106
if not vim.treesitter.language.get_lang("http") then
117
vim.treesitter.language.register("http", "http")
128
end
139
vim.opt.runtimepath:append(rest_nvim_dir)
1410
vim.cmd("runtime! ftplugin.vim")
15-
vim.cmd("runtime! plugin/**/*.{vim,lua}")
1611
vim.cmd("runtime! ftdetect/*.{vim,lua}")
1712
vim.cmd("runtime! filetype.lua")
13+
vim.cmd("runtime! plugin/**/*.{vim,lua}")
1814
vim.g.rest_nvim = {
1915
_log_level = vim.log.levels.INFO,
2016
request = {

tree-sitter-http

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)