-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notice of breaking changes #217
Comments
org tree-sitter grammar recently got a major overhaul. This breaks current code on master. Updated version is on PR #215. This will be merged in a week or so and tagged as Changes that are required: https://github.com/nvim-orgmode/orgmode/pull/215/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L74-R75 Replace this: local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.org = {
install_info = {
url = 'https://github.com/milisims/tree-sitter-org',
revision = 'f110024d539e676f25b72b7c80b0fd43c34264ef',
files = {'src/parser.c', 'src/scanner.cc'},
},
filetype = 'org',
} With this: require('orgmode').setup_ts_grammar() And run:
If above change is not done, proper error message will be printed out with instructions. |
#215 is now merged into master, and tagged as |
|
Support for Neovim versions under v0.7 will be dropped due to nvim-treesitter requiring Neovim v0.7. Nvim-treesitter doesn't have any versioning so it's hard to follow proper nvim-treesitter version for older Neovim. |
Master branch got an update for markup highlighting and concealing. Everyone who uses treesitter highlights should get new improved markup highlighting. This change addresses these issues:
|
Insert mode If your require('orgmode').setup({
mappings = {
org_return = false
}
}) Please report any issues found with it. |
Headline tags in org files are now right aligned according to the Before:
After:
|
Official support for Neovim versions < 0.8 will be dropped in the following weeks. Most likely nothing will break for some time, but since |
Folding is now using |
Support for Neovim versions < 0.8.3 are officially dropped. Everything should still work, but future changes might cause some breaking issus. |
#654 changed the default mapping for inserting link from |
nightly branch is a cleanup + rewrite of the functionality to work directly with tree-sitter. It is advised to use nightly Neovim versions due to faster tree-sitter parser, but changes are also fully compatible with v0.9.2+. If you are using any of the internals, especially ones under The biggest change regarding the functionality is the removal of the old syntax highlighting in the Any help on testing a nightly branch before it gets merged is highly appreciated. If you find anything, please open up an issue and add |
The nightly branch was merged into master (#665). |
#676 introduced two bigger changes to highlighting:
To use old highlights add this to your init.lua: local orgmode_highlights = {
['@org.timestamp.active'] = 'PreProc',
['@org.timestamp.inactive'] = 'Comment',
['@org.bullet'] = 'Identifier',
['@org.checkbox'] = 'PreProc',
['@org.checkbox.halfchecked'] = 'PreProc',
['@org.checkbox.checked'] = 'PreProc',
['@org.properties'] = 'Constant',
['@org.drawer'] = 'Constant',
['@org.tag'] = 'Function',
['@org.plan'] = 'Constant',
['@org.comment'] = 'Comment',
['@org.directive'] = 'Comment',
['@org.block'] = 'Comment',
['@org.latex'] = 'Statement',
['@org.hyperlink'] = 'Underlined',
['@org.code'] = 'String',
['@org.code.delimiter'] = 'String',
['@org.verbatim'] = 'String',
['@org.verbatim.delimiter'] = 'String',
['@org.bold'] = { bold = true },
['@org.bold.delimiter'] = { bold = true },
['@org.italic'] = { italic = true },
['@org.italic.delimiter'] = { italic = true },
['@org.strikethrough'] = { strikethrough = true },
['@org.strikethrough.delimiter'] = { strikethrough = true },
['@org.underline'] = { underline = true },
['@org.underline.delimiter'] = { underline = true },
}
for new_hl, old_hl in pairs(orgmode_highlights) do
if type(old_hl) == 'table' then
vim.api.nvim_set_hl(0, new_hl, old_hl)
else
vim.api.nvim_set_hl(0, new_hl, { link = old_hl })
end
end |
Support for nvim-compe was removed in #678 since that plugin is no longer maintained. |
Dependency on https://github.com/nvim-treesitter/nvim-treesitter will be removed when #707 is merged. TS grammar is now installed and compiled by orgmode. This means that return {
'nvim-orgmode/orgmode',
event = 'VeryLazy',
config = function()
-- Setup orgmode
require('orgmode').setup({
org_agenda_files = '~/orgfiles/**/*',
org_default_notes_file = '~/orgfiles/refile.org',
})
-- NOTE: If you are using nvim-treesitter with `ensure_installed = "all"` option
-- add `org` to ignore_install
-- require('nvim-treesitter.configs').setup({
-- ensure_installed = 'all',
-- ignore_install = { 'org' },
-- })
end,
} |
Dependency on nvim-treesitter is now officially removed. The last version that depends on it is https://github.com/nvim-orgmode/orgmode/releases/tag/0.3.1. |
|
This pinned issue is used to announce breaking changes and other important information to the users.
Breaking changes will be announced at least a week in advance.
The text was updated successfully, but these errors were encountered: