Skip to content

Commit

Permalink
Enable some LSP inlay hints in Go and Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
dietrichm committed Apr 21, 2024
1 parent dd79619 commit 590ca6d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nvim/.config/nvim/lua/dietrichm/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ lspconfig.gopls.setup {
gopls = {
staticcheck = true,
buildFlags = { '-tags=tools,wireinject' },
hints = {
compositeLiteralFields = true,
parameterNames = true,
},
},
},
}
Expand Down Expand Up @@ -139,6 +143,9 @@ lspconfig.lua_ls.setup {
diagnostics = {
globals = { 'vim' },
},
hint = {
enable = true,
},
workspace = {
library = vim.api.nvim_get_runtime_file('', true),
checkThirdParty = false,
Expand Down

0 comments on commit 590ca6d

Please sign in to comment.