plugins/gitsigns: onAttach example correction. (#711)

This commit is contained in:
mbsmith 2023-11-17 10:57:39 -06:00 committed by GitHub
parent 1b44fe37a1
commit 69f453a417
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,8 @@ in {
This callback can return `false` to prevent attaching to the buffer. This callback can return `false` to prevent attaching to the buffer.
''; '';
example = '' example = ''
\'\' {
function = \'\'
function(bufnr) function(bufnr)
if vim.api.nvim_buf_get_name(bufnr):match(<PATTERN>) then if vim.api.nvim_buf_get_name(bufnr):match(<PATTERN>) then
-- Don't attach to specific buffers whose name matches a pattern -- Don't attach to specific buffers whose name matches a pattern
@ -119,6 +120,7 @@ in {
... -- More keymaps ... -- More keymaps
end end
\'\' \'\'
}
''; '';
}; };