Skip to content

Commit

Permalink
doc: Document max_file_length fully
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Ferrier committed Jul 25, 2022
1 parent 48ac827 commit 1bdd97f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ require('gitsigns').setup {
sign_priority = 6,
update_debounce = 100,
status_formatter = nil, -- Use default
max_file_length = 40000,
max_file_length = 40000, -- Disable gitsigns if file is longer than this (in lines)
preview_config = {
-- Options passed to nvim_open_win
border = 'single',
Expand Down
4 changes: 2 additions & 2 deletions doc/gitsigns.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ of the default settings:
sign_priority = 6,
update_debounce = 100,
status_formatter = nil, -- Use default
max_file_length = 40000,
max_file_length = 40000, -- Disable gitsigns if file is longer than this (in lines)
preview_config = {
-- Options passed to nvim_open_win
border = 'single',
Expand Down Expand Up @@ -668,7 +668,7 @@ status_formatter *gitsigns-config-status_formatter*
max_file_length *gitsigns-config-max_file_length*
Type: `number`, Default: `40000`

Max file length to attach to.
Max file length (in lines) to attach to.

preview_config *gitsigns-config-preview_config*
Type: `table[extended]`
Expand Down

0 comments on commit 1bdd97f

Please sign in to comment.