Skip to content

Commit 4fdcc29

Browse files
committed
Enable inlay hints globally instead of per-buffer
1 parent f4fc6d9 commit 4fdcc29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/plugins/lsp.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
4949
local client = vim.lsp.get_client_by_id(args.data.client_id)
5050
assert(client) -- check client is not nil
5151
if client.server_capabilities.inlayHintProvider then
52-
vim.lsp.inlay_hint.enable(true, { bufnr = args.buf })
52+
vim.lsp.inlay_hint.enable(true)
5353
end
5454

5555
vim.lsp.document_color.enable(true, args.buf, { style = 'virtual' })

0 commit comments

Comments
 (0)