diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-12-02 16:45:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 16:45:39 +0100 |
commit | 07e6296520fc83b1fdb287b5173494cdd0e9136f (patch) | |
tree | 9844003e550f161a5d563a726fc759fa1a84d22a /runtime/lua/vim/lsp/buf.lua | |
parent | 731432342058c1c4340fc3cc4782b5fcd4a756a0 (diff) | |
parent | e40df8b1bc6a7832c7707696b374b19642dfd596 (diff) | |
download | rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.tar.gz rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.tar.bz2 rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.zip |
Merge pull request #21154 from clason/vimdoc-injections
feat(help): highlighted codeblocks
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
-rw-r--r-- | runtime/lua/vim/lsp/buf.lua | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua index c593e72d62..a5a66fd092 100644 --- a/runtime/lua/vim/lsp/buf.lua +++ b/runtime/lua/vim/lsp/buf.lua @@ -162,11 +162,11 @@ end --- Predicate used to filter clients. Receives a client as argument and must return a --- boolean. Clients matching the predicate are included. Example: --- ---- <pre> ---- -- Never request typescript-language-server for formatting ---- vim.lsp.buf.format { ---- filter = function(client) return client.name ~= "tsserver" end ---- } +--- <pre>lua +--- -- Never request typescript-language-server for formatting +--- vim.lsp.buf.format { +--- filter = function(client) return client.name ~= "tsserver" end +--- } --- </pre> --- --- - async boolean|nil @@ -555,11 +555,10 @@ end --- Send request to the server to resolve document highlights for the current --- text document position. This request can be triggered by a key mapping or --- by events such as `CursorHold`, e.g.: ---- ---- <pre> ---- autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight() ---- autocmd CursorHoldI <buffer> lua vim.lsp.buf.document_highlight() ---- autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references() +--- <pre>vim +--- autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight() +--- autocmd CursorHoldI <buffer> lua vim.lsp.buf.document_highlight() +--- autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references() --- </pre> --- --- Note: Usage of |vim.lsp.buf.document_highlight()| requires the following highlight groups |