Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.82 KB

troubleshoot.org

File metadata and controls

50 lines (37 loc) · 1.82 KB

Troubleshooting

Indentation is not working

Make sure you are not overriding indentexpr in Org buffers with nvim-treesitter indentation

I get treesitter/query.lua errors when opening agenda/capture prompt or org files

Tree-sitter parser might not be installed. Try running :Org install_treesitter_grammar to reinstall it.

Dates are not in English

Dates are generated with Lua native date support, and it reads your current locale when creating them.


To use different locale you can add this to your init.lua:

vim.cmd('language en_US.utf8')

Just make sure you have en_US locale installed on your system. To see what you have available on the system you can start the command :language and press <TAB> to autocomplete possible options.

Chinese characters are not displayed correctly in agenda

In case you use chinese characters in your Neovim, and characters appear as encoded, try setting the language to zh_CN.UTF-8 with the same command as above:

vim.cmd('language zh_CN.utf8')

See related issue: #879

Links are not concealed

Links are concealed with Vim’s conceal feature (see :help conceal). To enable concealing, add this to your init.lua:

vim.opt.conceallevel = 2
vim.opt.concealcursor = 'nc'

Jumping to file path is not working for paths with forward slash

If you are using Windows, paths are by default written with backslashes. To use forward slashes, you must enable shellslash option (see :help shellslash).

vim.opt.shellslash = true

More info on issue #281