aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/lsp/attach.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha/lsp/attach.lua')
-rw-r--r--lua/alpha/lsp/attach.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/alpha/lsp/attach.lua b/lua/alpha/lsp/attach.lua
index 45ce904..bf5b645 100644
--- a/lua/alpha/lsp/attach.lua
+++ b/lua/alpha/lsp/attach.lua
@@ -29,6 +29,10 @@ return function(client, bufnr)
vim.bo.omnifunc = "v:lua.vim.lsp.omnifunc"
+ if client.server_capabilities.inlayHintProvider then
+ vim.lsp.inlay_hint(bufnr, true)
+ end
+
-- Attach any filetype specific options to the client
filetype_attach[filetype](client, bufnr)
end