File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
113
113
type = types . bool ;
114
114
default = false ;
115
115
description = ''
116
- Whether to enable LSP inlay-hints.
117
- Only affects language servers with inlay-hints support.
116
+ Whether to enable LSP inlay-hints globally.
118
117
119
118
See [`:h lsp-inlay_hint`](https://neovim.io/doc/user/lsp.html#lsp-inlay_hint).
120
119
'' ;
@@ -189,14 +188,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
189
188
# being properly configured (missing some keys: `cmd`, `filetypes`, `root_markers` etc.)
190
189
performance . combinePlugins . standalonePlugins = [ cfg . package ] ;
191
190
192
- plugins . lsp . onAttach = lib . mkIf cfg . inlayHints ''
193
- -- LSP Inlay Hints {{{
194
- if client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
195
- vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
196
- end
197
- -- }}}
198
- '' ;
199
-
200
191
plugins . lsp . luaConfig . content =
201
192
let
202
193
runWrappers =
@@ -227,6 +218,9 @@ lib.nixvim.plugins.mkNeovimPlugin {
227
218
do
228
219
${ cfg . preConfig }
229
220
221
+ -- inlay hint
222
+ ${ lib . optionalString cfg . inlayHints "vim.lsp.inlay_hint.enable(true)" }
223
+
230
224
local __lspServers = ${ lib . nixvim . toLuaObject cfg . enabledServers }
231
225
-- Adding lspOnAttach function to nixvim module lua table so other plugins can hook into it.
232
226
_M.lspOnAttach = function(client, bufnr)
You can’t perform that action at this time.
0 commit comments