Update to use the new api for inlay hints that cme with 0.10
This commit is contained in:
parent
007ade1369
commit
9d6927225c
3 changed files with 4 additions and 4 deletions
|
|
@ -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 })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue