Attach inlay hints on lsp attach

This commit is contained in:
Luke Else 2023-05-18 11:21:03 +01:00
parent e99496fd2b
commit ece83c7ea5

View File

@ -57,6 +57,9 @@ lsp.on_attach(function(client, bufnr)
vim.keymap.set('n', '[d', function() vim.diagnostic.goto_next() end, opts)
vim.keymap.set('n', ']d', function() vim.diagnostic.goto_prev() end, opts)
vim.keymap.set('i', '<C-h>', function() vim.lsp.buf.signature_help() end, opts)
local ih = require('simrat39/inlay-hints')
ih.on_attach(client, bufnr)
end)
lsp.setup()