Skip to content

Commit 4f70b3b

Browse files
nvim: Enable lua inlay hint support
1 parent ea8b278 commit 4f70b3b

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.config/cvim/settings/nvim_lspconfig.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ local function config()
3030
-- cmp-nvim supports different completion results (ie capabilities) on top of
3131
-- neovim's omnifunc capability.
3232
-- cmp-nvim is a LSP client, it must indicate to the LSP server what capabilities
33-
-- the LSP client support so that the LSP server can serve those completion canditates
33+
-- the LSP client support so that the LSP server can serve those completion canditates,
34+
-- in addition to the default capabilities
3435
local client_lsp_capabilties = cmp.default_capabilities(default_capabilities)
3536

3637
-- default
@@ -115,7 +116,11 @@ local function config()
115116
vim_lsp,
116117
"lua_ls",
117118
client_lsp_capabilties,
118-
{},
119+
{
120+
Lua = {
121+
hint = { enable = true, semicolon = "Disable" }
122+
}
123+
},
119124
{}
120125
)
121126
-- latex

0 commit comments

Comments
 (0)