feat(lsp): disable inlay hints
This commit is contained in:
parent
977f625e5d
commit
40a52978a9
1 changed files with 2 additions and 0 deletions
|
|
@ -25,6 +25,8 @@ lsp_zero.set_sign_icons({
|
||||||
lsp_zero.on_attach(function(_, bufnr)
|
lsp_zero.on_attach(function(_, bufnr)
|
||||||
local opts = { buffer = bufnr, remap = false }
|
local opts = { buffer = bufnr, remap = false }
|
||||||
lsp_zero.default_keymaps({ buffer = bufnr })
|
lsp_zero.default_keymaps({ buffer = bufnr })
|
||||||
|
-- Disable inlay hints (virtual text for variable types and name of function parameters)
|
||||||
|
vim.lsp.inlay_hint.enable(false)
|
||||||
|
|
||||||
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
|
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
|
||||||
vim.keymap.set("n", "gi", function() vim.lsp.buf.implementation() end, opts)
|
vim.keymap.set("n", "gi", function() vim.lsp.buf.implementation() end, opts)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue