Skip to content

Commit e287630

Browse files
Revert "[NOTICE] Add warning about tree-sitter branch becoming master soon."
This reverts commit 50d1a97.
1 parent 50d1a97 commit e287630

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616

1717
## Tree-sitter
1818
Tree-sitter support branch: https://github.com/kristijanhusak/orgmode.nvim/tree/tree-sitter
19-
#### Tree-sitter branch will become main very soon!
20-
To remove warning message, you can do two things:
21-
1. Temporarily switch to the [tree-sitter](https://github.com/kristijanhusak/orgmode.nvim/tree/tree-sitter) branch
22-
2. Stay on master branch and install [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) and [tree-sitter-org grammar](https://github.com/milisims/tree-sitter-org). More info here: https://github.com/kristijanhusak/orgmode.nvim/tree/tree-sitter#setup.
19+
#### NOTE: tree-sitter branch will become main very soon!
20+
All new features and fixes are going to the `tree-sitter` branch.
2321

2422
## Installation
2523

lua/orgmode/init.lua

-13
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ function Org:new()
1414
setmetatable(data, self)
1515
self.__index = self
1616
data:setup_autocmds()
17-
vim.defer_fn(data.notify_update, 200)
1817
return data
1918
end
2019

@@ -48,18 +47,6 @@ function Org:setup_autocmds()
4847
vim.cmd([[augroup END]])
4948
end
5049

51-
function Org:notify_update()
52-
local success, _ = pcall(vim.treesitter.inspect_language, 'org')
53-
if success then
54-
return
55-
end
56-
local msg = {
57-
'[orgmode] Master branch will soon require tree-sitter support.',
58-
'To remove this message, see https://github.com/kristijanhusak/orgmode.nvim/tree/master#tree-sitter.',
59-
}
60-
vim.notify(table.concat(msg, '\n'), vim.log.levels.WARN)
61-
end
62-
6350
---@param opts? table
6451
---@return Org
6552
local function setup(opts)

0 commit comments

Comments
 (0)