diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-11-02 17:02:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-02 17:02:04 -0700 |
commit | 7899c4099b38f2198c86b08138f813c530fdc20f (patch) | |
tree | 7b9481d506c888db42eda45cbc125c45026d168d /runtime/doc | |
parent | 487286b6218ecf4bcf48d0a0089fbc78e2bc5a37 (diff) | |
download | rneovim-7899c4099b38f2198c86b08138f813c530fdc20f.tar.gz rneovim-7899c4099b38f2198c86b08138f813c530fdc20f.tar.bz2 rneovim-7899c4099b38f2198c86b08138f813c530fdc20f.zip |
docs(lsp): correct usage examples of formatexpr (#16216)
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index c844f8747b..80ac762792 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -63,7 +63,7 @@ Example config (in init.vim): > -- Use LSP as the handler for formatexpr. -- See `:help formatexpr` for more information. - vim.api.nvim_buf_set_option(0, 'formatexpr', 'v:lua.vim.lsp.formatexpr') + vim.api.nvim_buf_set_option(0, 'formatexpr', 'v:lua.vim.lsp.formatexpr()') -- For plugins with an `on_attach` callback, call them here. For example: -- require('completion').on_attach() |