Skip to content

Commit

Permalink
doc: document max_file_length fully (#597)
Browse files Browse the repository at this point in the history
Co-authored-by: Lewis Russell <me@lewisr.dev>
  • Loading branch information
andrewferrier and lewis6991 committed Jul 25, 2022
1 parent 48ac827 commit 8b817e7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 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 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 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
2 changes: 1 addition & 1 deletion lua/gitsigns/config.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion teal/gitsigns/config.tl
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ M.schema = {
type = 'number',
default = 40000,
description = [[
Max file length to attach to.
Max file length (in lines) to attach to.
]]
},

Expand Down

0 comments on commit 8b817e7

Please sign in to comment.