Bullets does not work in new files
Thank you for a very nice plugin. I know that this issue was addressed here #44. After reviewing everything, I did not find an answer. What I noted for myself:
- Bullets work in new files only if the file extension is .txt (I focused only on the text files I work with.) For example, open a new file in Vim:
- But if you open a new file with the txt extension, bullets works. When opening a new file with :new, it doesn't work again.
let g:bullets_enable_in_empty_buffers = 1 let g:bullets_enabled_file_types = ['markdown', 'text', 'gitcommit']
I faced the same issue and resolved it by setting the file type to text (not `txt)
:set ft=text
I have this problem too. Bullets.vim doesn't appear to be enabled in a new buffer until I set filetype for the buffer.
I see setting filetype as a workaround rather than a solution. It's not a huge inconvenience, but it does get in the way when opening a new buffer to jot down some notes.
I'm using nvim with Lazy with this config:
{
'bullets-vim/bullets.vim',
lazy = false,
init = function()
vim.g.bullets_enabled_file_types = { 'markdown', 'text', 'gitcommit', 'txt' }
vim.g.bullets_enable_in_empty_buffers = 1
end,
},
Interestingly, if I open a new buffer, set ft to text so that bullets works, and then set ft back to '', bullets continues to work.
I think I'll just have to accept this as one of life's little mysteries!