Moved Inlay hints out of attach function
This commit is contained in:
parent
c4dd699f9d
commit
ca94e7d106
@ -17,7 +17,7 @@ lsp.configure('lua-language-server', {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local ih = require('simrat39/inlay-hints')
|
||||||
local cmp = require('cmp')
|
local cmp = require('cmp')
|
||||||
local cmp_select = {behavior = cmp.SelectBehavior.Select}
|
local cmp_select = {behavior = cmp.SelectBehavior.Select}
|
||||||
local cmp_mappings = lsp.defaults.cmp_mappings({
|
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('n', ']d', function() vim.diagnostic.goto_prev() end, opts)
|
||||||
vim.keymap.set('i', '<C-h>', function() vim.lsp.buf.signature_help() 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)
|
ih.on_attach(client, bufnr)
|
||||||
end)
|
end
|
||||||
|
)
|
||||||
|
|
||||||
lsp.setup()
|
lsp.setup()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user