diff --git a/README.md b/README.md index c18e00f..18fcbb4 100644 --- a/README.md +++ b/README.md @@ -407,7 +407,7 @@ This list is by no means comprehensive. If you wish to know more about what's ma #### Tips -Writing `print(vim.inspect(x))` every time you want to inspect the contents of an object can get pretty tedious. It might be worthwhile to have a global wrapper function somewhere in your configuration: +Writing `print(vim.inspect(x))` every time you want to inspect the contents of an object can get pretty tedious. It might be worthwhile to have a global wrapper function somewhere in your configuration (in Neovim 0.7.0+, this function is built-in, see [`:help vim.pretty_print()`](https://neovim.io/doc/user/lua.html#vim.pretty_print())): ```lua function _G.put(...) diff --git a/doc/nvim-lua-guide.txt b/doc/nvim-lua-guide.txt index ade68ed..71d78ee 100644 --- a/doc/nvim-lua-guide.txt +++ b/doc/nvim-lua-guide.txt @@ -501,8 +501,9 @@ of every module. API functions are documented under |api-global|. Tips~ Writing `print(vim.inspect(x))` every time you want to inspect the -contents of an object can get pretty tedious. It might be worthwhile to -have a global wrapper function somewhere in your configuration: +contents of an object can get pretty tedious. It might be worthwhile +to have a global wrapper function somewhere in your configuration (in +Neovim 0.7.0+, this function is built-in, see |vim.pretty_print()|): > function _G.put(...)