docs: add missing vim table in the example

This commit is contained in:
monkoose 2022-01-22 11:59:21 +02:00 committed by Stephan Seitz
parent 00736412a3
commit 500f58f5ac

View file

@ -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,
},
}