Skip to content

Commit

Permalink
Revert "[NOTICE] Add warning about tree-sitter branch becoming master…
Browse files Browse the repository at this point in the history
… soon."

This reverts commit 50d1a97.
  • Loading branch information
kristijanhusak committed Nov 7, 2021
1 parent 50d1a97 commit e287630
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@

## Tree-sitter
Tree-sitter support branch: https://github.com/kristijanhusak/orgmode.nvim/tree/tree-sitter
#### Tree-sitter branch will become main very soon!
To remove warning message, you can do two things:
1. Temporarily switch to the [tree-sitter](https://github.com/kristijanhusak/orgmode.nvim/tree/tree-sitter) branch
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.
#### NOTE: tree-sitter branch will become main very soon!
All new features and fixes are going to the `tree-sitter` branch.

## Installation

Expand Down
13 changes: 0 additions & 13 deletions lua/orgmode/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function Org:new()
setmetatable(data, self)
self.__index = self
data:setup_autocmds()
vim.defer_fn(data.notify_update, 200)
return data
end

Expand Down Expand Up @@ -48,18 +47,6 @@ function Org:setup_autocmds()
vim.cmd([[augroup END]])
end

function Org:notify_update()
local success, _ = pcall(vim.treesitter.inspect_language, 'org')
if success then
return
end
local msg = {
'[orgmode] Master branch will soon require tree-sitter support.',
'To remove this message, see https://github.com/kristijanhusak/orgmode.nvim/tree/master#tree-sitter.',
}
vim.notify(table.concat(msg, '\n'), vim.log.levels.WARN)
end

---@param opts? table
---@return Org
local function setup(opts)
Expand Down

0 comments on commit e287630

Please sign in to comment.