mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(docs) fix syntax error in Lua snippet for vim.lsp.document_color
#33612
9ff1239634
added support for 'textDocument/documentColor' but the
text snippet in the Lua docs seem to contain a syntax error.
This commit is contained in:
@ -2167,7 +2167,7 @@ enable({enable}, {bufnr}, {opts}) *vim.lsp.document_color.enable()*
|
||||
callback = function(args)
|
||||
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||
|
||||
if client:supports_method('textDocument/documentColor')
|
||||
if client:supports_method('textDocument/documentColor') then
|
||||
vim.lsp.document_color.enable(true, args.buf)
|
||||
end
|
||||
end
|
||||
|
@ -248,7 +248,7 @@ end
|
||||
--- callback = function(args)
|
||||
--- local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||
---
|
||||
--- if client:supports_method('textDocument/documentColor')
|
||||
--- if client:supports_method('textDocument/documentColor') then
|
||||
--- vim.lsp.document_color.enable(true, args.buf)
|
||||
--- end
|
||||
--- end
|
||||
|
Reference in New Issue
Block a user