nvim-orgmode / org-bullets.nvim Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
Hey @akinsho, awesome plugin as always, just started using it a bit ago and I love it!
So when I use the following configuration...
require("org-bullets").setup {
concealcursor = true,
checkboxes = {
half = { "-", "OrgTSCheckboxHalfChecked" },
todo = { "×", "OrgTODO" },
},
}
...neither the half nor the todo checkbox states get updated. Am I doing something wrong? I've confirmed that the function is being run with print function calls.
First of all: thank you for creating such a nice plugin. Little goodies like these really make day-to-day editing much more enjoyable!
I haven't been able to figure out how to enable the org-bullets for norg-files. Using the default setup
use {'akinsho/org-bullets.nvim', config = function()
require('org-bullets').setup()
end}
works fine if I manually set ft=org
. This however is not a good solution, because I want the syntax support and the extra functionality that comes along with the norg
filetype.
I am aware that through #25 it was possible to enable markdown support. It would be very helpful, if there were a guide on how to set this up with other filetypes (for me mainly norg
and markdown
), if possible. I'm sure other people would be very interested in how to set this up as well.
Otherwise, I think it would be great to have this feature, since norg
files are very similar to traditional org
files and readily supported by treesitter.
Hi, just a quick question, I was using orgmode with org-bullet, headline works before. After yesterday's update the headline is not displaying properly, I noticed you just updated something, I changed the setup but my headline is still not displaying properly, do I need to change any other settings please?
Can you add blockquotes support ?
eg. replace
> some text
with
some text
Hi i hope you are enjoying good health i am using this plugin from quite a while and it is amazing. for some requirements i also manage a large database of notes in markdown format and it will be really cool if we have something similar for markdown in neovim before posting i have tried my best to make this plugin work with markdown but am i really noob in this side and cant make it work. can you please give me some tips on how should i approach this problem of modifying this to make it work for markdown or may be if its not much for you then let the word have https://github.com/akinsho/md-bullets.nvim/
I'm not a hundred sure if this is possible for the org TS parser but since I initially created this plugin conceal is now supported for treesitter, so I think this plugin can largely be replaced with conceal queries either upstream or maybe just converting this plugin to a README showing how to do this, but first I'd have to get it working
When I :edit an .org file for the first time then the org-bullets are applied. However, if I :edit the same file again then the org-bullets are not applied.
I guess the ts-parser is no longer valid when this happens. Adding the following code in get_mark_positions()
fixes this for me:
if not parser:is_valid() then
parser:parse()
end
If the subtrees are collapsed, after moving a subtree up or down, I have to save the buffer, close it and reopen my org file in order to see the changes.
To Reproduce:
Expected behavior:
I would expect to see the main tree in its new position without having to expand all the subtrees above.
How it works in Emacs:
In Emacs Orgmode, all subtrees can be repositioned when items are collapsed, as long as the subtree group is visible that is being rearranged.
Also, in Emacs Orgmode, the cursor remains on the subtree that is being moved. This allows the user to repeatedly move the subtree up and down with ease.
OS: Ubuntu 20.04
Neovim: v.10.0-dev
Always got errors by using this config
require("org-bullets").setup({
concealcursor = false, -- If false then when the cursor is on a line underlying characters are visible
symbols = {
-- headlines can be a list
headlines = { "◉", "○", "✸", "✿" },
-- or a function that receives the defaults and returns a list
headlines = function(default_list)
table.insert(default_list, "♥")
return default_list
end,
checkboxes = {
cancelled = { "", "OrgCancelled" },
done = { "✓", "OrgDone" },
todo = { "˟", "OrgTODO" },
},
}
})
Error is
Error detected while processing /home/volk/.config/nvim/after/plugin/bullets.rc.vim:
line 19:
E5108: Error executing lua ...config/nvim/plugged/org-bullets.nvim/lua/org-bullets.lua:43: atte
mpt to call field 'symbols' (a table value)
stack traceback:
...config/nvim/plugged/org-bullets.nvim/lua/org-bullets.lua:43: in function 'set_config
'
...config/nvim/plugged/org-bullets.nvim/lua/org-bullets.lua:273: in function 'setup'
[string ":lua"]:1: in main chunk
Hi, is there a function to toggle the visibility of the bullets? It would be useful to toggle the highlight when I need to edit the raw file (e.g. for alignment purposes).
Hi, could you add orgmode-nvim
to your list of topics? That way plugin will be discoverable from here https://github.com/topics/orgmode-nvim. Thanks.
Hi,
Can you please tell me what font is used in the screenshot from the README?
Thanks.
The new addition of symbols for list items overrides "level 1" headers (in the image below the level 1 headline bullet should be much larger):
Creating an issue to see whether or not this was intentional first, but would it be ideal to have configuration to setup what list items users want to support? For example, I only ever use -
for lists. Happy to look into opening a PR for this.
Hi,
today while debugging some things I checked source code here to see what's happening, and I noticed that you are setting these exmarks via autocmd, and managing them via internal state.
I think using nvim_set_decoration_provider
+ ephermal
option should help you clean things up a bit and have less code to manage. I just pushed a fix for hide leading stars option on tree-sitter branch that is using this provider, and it seems it's working fine. I think same thing is used internally for treesitter highlights.
I'm pretty sure using the same chunk of code with addition to the virtual text instead of hl group should do the trick.
This is just a suggestion of course.
conceal doesn't work when a block is folded.
Checkout nvim-neorg/neorg#157 I found an easy solution, hope it helps.
However, the default character that nvim-orgmode inserts with seems to be upper-case 'X'.
Fixed this in my fork: https://github.com/jgollenz/org-bullets.nvim/blob/fix/checkmark-ignore-case/lua/org-bullets.lua#L92
Shall I make a PR?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.