Skip to content

Commit

Permalink
Inlay hints for Lua and Go
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Gheorghiu <vsoftco@gmail.com>
  • Loading branch information
vsoftco committed May 28, 2024
1 parent d3161df commit e61e141
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ return {
handlers = {
default_setup,
-- Custom configurations below
lua_ls = function()
lspconfig.lua_ls.setup({
capabilities = lsp_capabilities,
on_attach = lsp_format_on_save,
settings = {
Lua = {
hint = { enable = true },
},
},
})
end,
clangd = function()
lspconfig.clangd.setup({
capabilities = lsp_capabilities,
Expand Down Expand Up @@ -113,6 +124,15 @@ return {
analyses = {
unusedparams = true,
},
hints = {
assignVariableTypes = true,
compositeLiteralFields = true,
compositeLiteralTypes = true,
constantValues = true,
functionTypeParameters = true,
parameterNames = true,
rangeVariableTypes = true,
},
},
},
})
Expand Down

0 comments on commit e61e141

Please sign in to comment.