Skip to content

Commit 5c915aa

Browse files
authored
Merge branch 'master' into renovate/configure
2 parents 94e4bb0 + 8f3259e commit 5c915aa

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

doc/bullets.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ line.
121121

122122
Enable in empty buffers
123123
-----------------------
124-
bullets.vim is enabled in new empty buffers by default (buffers created with
125-
`:new` for example) to disable this feature add the following to your .vimrc:
124+
bullets.vim is disabled in new empty buffers by default (buffers created with
125+
`:new` for example) to enable this feature add the following to your .vimrc:
126126

127127
`let g:bullets_enable_in_empty_buffers = 1`
128128

plugin/bullets.vim

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
scriptencoding utf-8
22
" Vim plugin for automated bulleted lists
3-
" Last Change: Sat Jan 29 06:56:14 PM CST 2022
43
" Maintainer: Dorian Karter
54
" License: MIT
6-
" FileTypes: markdown, text, gitcommit
75

86
" Preserve Vim compatibility settings ------------------- {{{
97
let s:save_cpo = &cpoptions
@@ -23,7 +21,7 @@ if !exists('g:bullets_enabled_file_types')
2321
endif
2422

2523
if !exists('g:bullets_enable_in_empty_buffers')
26-
let g:bullets_enable_in_empty_buffers = 1
24+
let g:bullets_enable_in_empty_buffers = 0
2725
end
2826

2927
if !exists('g:bullets_set_mappings')
@@ -1126,7 +1124,7 @@ fun! s:add_local_mapping(with_leader, mapping_type, mapping, action)
11261124
\ a:action
11271125

11281126
if g:bullets_enable_in_empty_buffers
1129-
execute 'autocmd BufEnter * if bufname("") == "" | ' .
1127+
execute 'autocmd BufNew,BufRead * if empty(&filetype) | ' .
11301128
\ a:mapping_type .
11311129
\ ' <silent> <buffer> ' .
11321130
\ (a:with_leader ? g:bullets_mapping_leader : '') .

spec/filetypes_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
expect(buffer_content).to eq normalize_string_indent(<<-TEXT)
1717
# Hello there
1818
- this is the first bullet
19-
- this is the second bullet
19+
this is the second bullet
2020
TEXT
2121
end
2222

0 commit comments

Comments
 (0)