aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-10-31 05:40:26 -0700
committerGitHub <noreply@github.com>2021-10-31 05:40:26 -0700
commit52fa1d26db43664e8aeb856a59a693e9cb6ad44f (patch)
tree1aa7e4803d7fc5b2d4cb16f16b46ae8307bae448 /runtime/doc
parent4da0351651848e6c6c52903518fcd9ed15e087be (diff)
downloadrneovim-52fa1d26db43664e8aeb856a59a693e9cb6ad44f.tar.gz
rneovim-52fa1d26db43664e8aeb856a59a693e9cb6ad44f.tar.bz2
rneovim-52fa1d26db43664e8aeb856a59a693e9cb6ad44f.zip
feat(lsp): add formatexpr (#16186)
Co-authored-by: Meck <yesmeck@gmail.com> Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 30e8ff658b..c844f8747b 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -61,6 +61,10 @@ Example config (in init.vim): >
-- See `:help omnifunc` and `:help ins-completion` for more information.
vim.api.nvim_buf_set_option(0, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
+ -- 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')
+
-- For plugins with an `on_attach` callback, call them here. For example:
-- require('completion').on_attach()
end