summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormonkoose <monkoose@protonmail.com>2022-01-22 11:59:21 +0200
committerStephan Seitz <stephan.seitz@fau.de>2022-01-22 11:09:39 +0100
commit500f58f5ace8f23d4fc43c2df2248414033f5702 (patch)
treee2f5d43221cbbcd96ba6396c3ca34d345590e788 /doc
parent00736412a348453b93a11806052f682ee08c8e59 (diff)
docs: add missing vim table in the example
Diffstat (limited to 'doc')
-rw-r--r--doc/nvim-treesitter.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt
index 44aff0e6..63e3cec7 100644
--- a/doc/nvim-treesitter.txt
+++ b/doc/nvim-treesitter.txt
@@ -116,7 +116,7 @@ language and buffer number as arguments:
highlight = {
enable = true,
disable = function(lang, bufnr) -- Disable in large C++ buffers
- return lang == "cpp" and api.nvim_buf_line_count(bufnr) > 50000
+ return lang == "cpp" and vim.api.nvim_buf_line_count(bufnr) > 50000
end,
},
}