Moved Inlay hints out of attach function

This commit is contained in:
Luke Else 2023-05-18 11:27:15 +01:00
parent c4dd699f9d
commit ca94e7d106

View File

@ -17,7 +17,7 @@ lsp.configure('lua-language-server', {
}
})
local ih = require('simrat39/inlay-hints')
local cmp = require('cmp')
local cmp_select = {behavior = cmp.SelectBehavior.Select}
local cmp_mappings = lsp.defaults.cmp_mappings({
@ -58,9 +58,9 @@ lsp.on_attach(function(client, bufnr)
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)
end
)
lsp.setup()