Update to use the new api for inlay hints that cme with 0.10

This commit is contained in:
Martin Larsson 2024-05-20 22:53:53 +02:00
parent 007ade1369
commit 9d6927225c
3 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ return {
},
server = {
on_attach = function(client, bufnr)
vim.lsp.inlay_hint.enable(bufnr, true)
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
if client.server_capabilities.documentFormattingProvider then
vim.api.nvim_buf_create_user_command(bufnr, "Format", vim.lsp.buf.format, { nargs = 0 })