Closed junnplus closed 1 year ago
Test config in lazy.nvim:
{ 'junnplus/lsp-setup.nvim', branch = 'inlay-hints', opts = { inlay_hints = { enabled = true, parameter_hints = true, type_hints = true, }, servers = { tsserver = { settings = { typescript = { inlayHints = { includeInlayParameterNameHints = 'all', includeInlayParameterNameHintsWhenArgumentMatchesName = false, includeInlayFunctionParameterTypeHints = true, includeInlayVariableTypeHints = true, includeInlayVariableTypeHintsWhenTypeMatchesName = false, includeInlayPropertyDeclarationTypeHints = true, includeInlayFunctionLikeReturnTypeHints = true, includeInlayEnumMemberValueHints = true, } }, } }, gopls = { settings = { gopls = { gofumpt = true, -- staticcheck = true, usePlaceholders = true, codelenses = { gc_details = true, }, hints = { rangeVariableTypes = true, parameterNames = true, constantValues = true, assignVariableTypes = true, compositeLiteralFields = true, compositeLiteralTypes = true, functionTypeParameters = true, }, }, }, }, lua_ls = { settings = { Lua = { workspace = { checkThirdParty = false, }, hint = { enable = true, }, } } }, ['rust_analyzer@nightly'] = { settings = { ['rust-analyzer'] = { diagnostics = { disabled = { 'unresolved-proc-macro' }, }, cargo = { loadOutDirsFromCheck = true, }, procMacro = { enable = true, }, inlayHints = { closureReturnTypeHints = { enable = true }, } }, }, } } } }
Test config in lazy.nvim: