bullets.vim icon indicating copy to clipboard operation
bullets.vim copied to clipboard

Bullets does not work in new files

Open Jorysm opened this issue 8 months ago • 2 comments

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:

Image

  • 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.

Image

let g:bullets_enable_in_empty_buffers = 1 let g:bullets_enabled_file_types = ['markdown', 'text', 'gitcommit']

Jorysm avatar Apr 02 '25 11:04 Jorysm

I faced the same issue and resolved it by setting the file type to text (not `txt)

:set ft=text

YusufGandhi avatar Aug 06 '25 13:08 YusufGandhi

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!

trevorjobling avatar Aug 27 '25 13:08 trevorjobling