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

@ -9,7 +9,7 @@ local function setup_lsp(server_names)
local server_table = require("language_servers/" .. server_name)
server_table.capabilities = capabilities
server_table.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 })